pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Din Adrian <adrian.din@easynet.ro>
To: pgsql-sql@postgresql.org
Subject: Record type in sql
Date: Mon, 17 Jan 2005 14:31:26 +0200
Message-ID: <opskqyeodpawcxfg@adi> (raw)

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/



view thread (2+ messages)  latest in thread

Message-ID: <opskqyeodpawcxfg@adi>
Permalink:  ../opskqyeodpawcxfg@adi/
Also on:    postgresql.org/message-id/opskqyeodpawcxfg@adi

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: adrian.din@easynet.ro
  Subject: Re: Record type in sql
  In-Reply-To: <opskqyeodpawcxfg@adi>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox