[SQL] select into

2006-11-22 Thread Mulham freshcode
Hi guys, Am new to sql scripting so this might be a stupid question. Am getting an error while trying to do the following SELECT INTO svc_data_rec * from svc_tbl_name where 'uid' = sub_id; where svc_data_rec is defined as record and svc_tbl_name is a varchar that holds the name of a table

Re: [SQL] select into

2006-11-23 Thread Mulham freshcode
h the result's structure automatically)." That i take to mean that the above is ok. But it ain't. Thanks again for your guys help... "A. Kretschmer" <[EMAIL PROTECTED]> wrote: am Wed, dem 22.11.2006, um 0:28:15 -0800 mailte Mulham freshcode folgendes: >

Re: [SQL] select into

2006-11-23 Thread Mulham freshcode
will be no point in using it since I need something to change according the structure the table, which i don't know in advance... Thank you, Mustafa... Adrian Klaver <[EMAIL PROTECTED]> wrote: On Thursday 23 November 2006 09:19 am, Mulham freshcode wrote: > Hi, > Thanks ve

Re: [SQL] select into

2006-11-23 Thread Mulham freshcode
cuting the statement? Sorry for the long question, and thanks again for the help Mustafa... Tom Lane <[EMAIL PROTECTED]> wrote: Mulham freshcode writes: > execute sql_str1 into svc_data_rec ; > svc_data_rec is a RECORD, which is supposed to be dynamic. This should work --- in PG 8

Re: [SQL] select into

2006-11-24 Thread Mulham freshcode
where table_name~svc_tbl_name loop raise notice 'Column name:%', col_name.column_name; raise notice 'Value: %', svc_data_rec[col_name.column_name]; end loop; Thank you, Mustafa ... Adrian Klaver <[EMAIL PROTECTED]> wrote: On Thursday 23 November

Re: [SQL] select into

2006-11-27 Thread Mulham freshcode
Hi Adrian, Thanks very much for your help...it is a pity you can't do this in plpgsql coz i have almost every thing else I need, and I hate to use yet another language. What does it take to add this mechanism to the language? Is any one planning to add it? It can come it handy I bet. Thanks ag