I want to create a function that will return rows from a table based upon a parameter that I pass.
TABLE - NAMES
I would like my function to return the same result as it would if I entered the following SQL statement:
select ID, NAME, ADDRESS from NAMES where STATE = 'WI';
I want to pass 'WI' as a parameter. I have looked through the programming guide but am confused by the return type and such. Any help or pointers to further documentation would certainly be appreciated.
pgsql-novice by date
|Next:||From: Devinder K Rajput||Date: 2002-09-25 00:33:19|
|Previous:||From: Joachim Smit||Date: 2002-09-24 12:57:59|
|Subject: Re: Disk space|