[SQL] Record type in sql

2005-01-17 Thread Din Adrian
Hello, I have a little problem I want to declare a type record for later use like that create type record_structure1 as (id int2, nume text); that is ok! next in a function I want to use something like that: select * from table as record_structure1 ? instead of writing select * from table as t1(id

Re: [SQL] Record type in sql

2005-01-17 Thread KÖPFERL Robert
@postgresql.org Subject: [SQL] Record type in sql Hello, I have a little problem I want to declare a type record for later use like that create type record_structure1 as (id int2, nume text); that is ok! next in a function I want to use something like that: select * from table