Re: [SQL] question about PL/pgSQL function

2001-06-01 Thread Josh Berkus
Jack, > select into rec1 * from EMP where empNo =''''; > i1 := xxx(rec1,5); Bad syntax. The correct syntax is: SELECT * INTO rec1 FROM EMP WHERE empNo=''''; > 2. Is that possible to return a record from a function? And how do I > get the > returned record in PL/pgSql

[SQL] question about PL/pgSQL function

2001-05-31 Thread datactrl
With postgres 7.1 1. Function like example found on 24.4 Example in Programmer Guide CREATE FUNCTION xxx (EMP, integer) RETURNS boolean AS'.. (which EMP is a table ) How do I pass a record to this function in PL/PGSQL? I try this select into rec1 * from EMP where empNo =''