PostgreSql
Hi all
I'm new to PostgreSql
i'm trying to write a simple function
CREATE OR REPLACE FUNCTION insert_tmp_pswd2 (int4, varchar)
RETURNS int4 AS '
DECLARE
tmp VARCHAR;
BEGIN
insert into "ExAfrica".test2 values($1, $2,now());select 1;
END;
'
LANGUAGE 'sql';
i really dont know why he doesnt want to declare new vars...
pls help!
thanks!
severman
Junior Poster in Training
70 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
but the 'select 1' should do the return statement no?
severman
Junior Poster in Training
70 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
i tried to write plpgsql as language but he screams and tells me that he doesnt know this type of language.
i'm using razorSQL.
do u maybe know a good developer for ubuntu?
pgadmin is terrible and so is phppgadmin
severman
Junior Poster in Training
70 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
thanks alot!
i will try what you said on Sunday when i'll return to work.
have a great weekend!
severman
Junior Poster in Training
70 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0