Reference and arrays

Поиск
Список
Период
Сортировка
От Cima
Тема Reference and arrays
Дата
Msg-id 00c701c52b73$f9b55090$f00110ac@doctorado1
обсуждение исходный текст
Ответы Re: Reference and arrays  (Michael Glaesemann <grzm@myrealbox.com>)
Список pgsql-novice
hi,
im using postgresql 8.0.1 and i want to be able to do the following:
 
create table t1 (name varchar(10), age int2);
 
create table t2 (position varchar(20), worker t1[]);
 
meaning i want to be  able to declare worker as an array of t1. if that is possible how do i insert into values t2.
after that can i make a reference to another table using the array. something like this:
 
create table t3 (month varchar(20), bday reference t1[]);
 
or  something as close to this as possible.
 
thanx a lot!
 
 

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Question on simulating Enum Data type
Следующее
От: uday kumar
Дата:
Сообщение: seeking soln.ERROR:;Http status:404 resource not found