Search Postgresql Archives

Re: SQL return value...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cristian Prieto wrote:
This is maybe a really newbie question, but, when I have an SQL function
like that:

$$
Insert into mytable (id, name) values ($1, $2);
$$

What return value suppose to return?

Either return "void" or return "boolean" and add a "SELECT true;" statement to the end of your function.

--
  Richard Huxton
  Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux