Question about function

Поиск
Список
Период
Сортировка
От Bruno Lopes (Desenvolvimento)
Тема Question about function
Дата
Msg-id 200203131841.PAA05277@home.pcsolution.com.br
обсуждение исходный текст
Ответы Re: Question about function  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: Question about function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hello list.
That might sound very lame but I am new to postgres.
I was looking into the postgres guide and trying to make a function to make an insert to a table.
but postgres returns me an error in the RETURN of the function

query is:
CREATE FUNCTION test() RETURNS bool AS 'INSERT INTO b (nome) VALUES (\'PQP\');' LANGUAGE 'sql';
>> function declared to return type bool, but final query is not a retrieve

obviously my return type is incorrect... so what should I use?

______________________________________
Scanned and protected by Inflex
http://pldaniels.com/inflex

В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Emberson
Дата:
Сообщение: location of Large Object
Следующее
От: Dave
Дата:
Сообщение: JDBC Prepared Statement Bug