From: Tom Lane <tgl@sss.pgh.pa.us>
To: Maciej Piekielniak <piechcio@isb.com.pl>
Cc: pgsql-sql@postgresql.org
Subject: Re: create table and data types
Date: Tue, 14 Feb 2006 17:06:34 -0500
Message-ID: <23215.1139954794@sss.pgh.pa.us> (raw)
In-Reply-To: <1827225102.20060214221218@isb.com.pl>
References: <1827225102.20060214221218@isb.com.pl>
Maciej Piekielniak <piechcio@isb.com.pl> writes:
> Is anybody know how create field in a new table with data type accuiring from a field in other table?
Sorry, the %TYPE syntax only works in function declarations at the
moment.
It could possibly be made to work in table declarations --- there are
syntactic conflicts with allowing it in general, but I'm not sure that
objection applies to table declarations. But it's not there today.
regards, tom lane
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: tgl@sss.pgh.pa.us, piechcio@isb.com.pl
Subject: Re: create table and data types
In-Reply-To: <23215.1139954794@sss.pgh.pa.us>
* 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