PostgreSQL 7.3: help on new CREATE TYPE

Поиск
Список
Период
Сортировка
От Jerome Chochon
Тема PostgreSQL 7.3: help on new CREATE TYPE
Дата
Msg-id 047101c25e2b$038cd0c0$80a337c1@pclisi17
обсуждение исходный текст
Ответы Re: PostgreSQL 7.3: help on new CREATE TYPE  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Hi all.
 
I have read the last version of PostgreSQL (7.3 beta) and found that the second version of CREATE TYPE is very interesting.
 
So we can create a type that look like a RECORD.
For example:
CREATE TYPE adress AS (number int, street text, country VARCHAR);
 
But can i use this type in a table definition like this:
CREATE TABLE person (his_name VARCHAR, his_adress adress);
 
Someone can answer to my question.
 
Thanks for your help.
 
Jérôme Chochon.
 
 

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Zeugswetter Andreas SB SD"
Дата:
Сообщение: Re: Proposal for resolving casting issues
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: PostgreSQL 7.3: help on new CREATE TYPE