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 for
  Advanced Search

How to add a function that returns the result of a select statement?



Hi,

I've tried using the "New function" option to create a new SQL function that will return the result of a select statement "Select * from user". I've set the return type to be the "user" table. But i keep getting an error about "Syntax error at or near Select". My SQL statement is very simple "select * from user" so there is no syntax error. Anyone can help?
--

Cheers
Gibson Tang
Game Programmer
179, River Valley Building #04-09
Singapore 179033
Nexgen Studio <www.nexgenstudio.com>



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group