Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Función


  • From: "Mario Soto Cordones" <msotocl(at)gmail(dot)com>
  • To: "'Lista PostgreSQL'" <pgsql-es-ayuda(at)postgresql(dot)org>
  • Subject: Función
  • Date: Mon, 29 Jun 2009 20:40:40 -0400
  • Message-id: <000001c9f91b$77e17fb0$67a47f10$@com> <text/plain>

 

Hola Lista, tengo la siguiente función:

 

CREATE OR REPLACE FUNCTION "public"."inspropiedades" (char, smallint,
smallint, integer, smallint, smallint, smallint, varchar, varchar, varchar,
smallint, smallint, smallint, varchar, varchar, varchar, varchar, varchar)
RETURNS "pg_catalog"."void" AS

$body$

INSERT INTO epropiedades_propiedades( id_estado, co_empresa, co_filial,
co_propiedad, co_tipo, co_estado, ty_operacion, nb_propiedad, tx_direccion,
tx_calle, co_comuna,

 co_region, co_provincia,rut_propietario, rut_corredor, tx_numero,
tx_referencia, id_usuario)

 VALUES ($1, $2, $3, $4, $5,$6, $7, $8, $9, $10,$11,$12,$13, $14,
$15,$16,$17,$18);

$body$

LANGUAGE 'sql'

VOLATILE

RETURNS NULL ON NULL INPUT

SECURITY INVOKER

COST 100;

 

La ejecuto de la siguiente forma:

 

select * from inspropiedades('SA', 1, 1, 109, 1, 1, 3, 'CASA QUINTA CARMEN',
'DIRECCION', 'CALLE CARMEN', 30, 13,
1,'1-6','1-6','123456','REFERENCIA','MSOTO')

 

Y me da el siguiente error:

 

ERROR:  function inspropiedades(unknown, integer, integer, integer, integer,
integer, integer, unknown, unknown, unknown, integer, integer, integer,
unknown, unknown, unknown, unknown, unknown) does not exist

LINE 1: select * from inspropiedades('SA', 1, 1, 109, 1, 1, 3, 'CASA...

                      ^

HINT:  No function matches the given name and argument types. You might need
to add explicit type casts.

 

En verdad no se que pueda ser… alguien me puede dar una mano

 

 

 

 

 

 

atentamente,

 

                Mario Soto Cordones

 

 

 

 

 

medio ambiente    Porfavor antes de Imprimir éste correo, piense en los
árboles de nuestro planeta.

       

 

JPEG image



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group