X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DA2563A2CDF for ; Mon, 17 Jan 2005 12:29:41 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 92047-07 for ; Mon, 17 Jan 2005 12:29:32 +0000 (GMT) Received: from mail.idilis.net (mail.idilis.net [217.156.85.2]) by svr1.postgresql.org (Postfix) with ESMTP id 846673A3C96 for ; Mon, 17 Jan 2005 12:29:34 +0000 (GMT) Received: from [82.76.81.98] (helo=adi) by mail.idilis.net with asmtp id 1CqW0i-0004id-00 for pgsql-sql@postgresql.org; Mon, 17 Jan 2005 14:29:32 +0200 To: pgsql-sql@postgresql.org Subject: Record type in sql Date: Mon, 17 Jan 2005 14:31:26 +0200 From: Din Adrian Organization: Om Computer & Software Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/7.50 (Win32, build 3778) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200501/119 X-Sequence-Number: 19907 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 int2, nume text); is this possible? Thank You, Adrian Din -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/