[SQL] Stored procedures

2004-01-01 Thread beyaRecords - The home Urban music
Hi, I am having problems with a stored procedure (plpgsql) that takes in a value and returns a record set. my code is as follow: create function pg_clientRec(text) setof record as ' declare customerID ALIAS $1; rec record; begin select into rec * from troubletickets where custID = customerID; ret

Re: [SQL] Stored procedures

2004-01-01 Thread Tom Lane
beyaRecords - The home Urban music <[EMAIL PROTECTED]> writes: > I am having problems with a stored procedure (plpgsql) that takes in a > value and returns a record set. > I am calling the procedure as follows: > select clientRec('tmpg60'); Use select * from clientRec('tmpg60') as (colum