insertable views - not copy-able ?

Поиск
Список
Период
Сортировка
От Daniel Péder
Тема insertable views - not copy-able ?
Дата
Msg-id 01BF18EA.81DB25A0@Dan
обсуждение исходный текст
Ответы Re: [HACKERS] insertable views - not copy-able ?  (wieck@debis.com (Jan Wieck))
Re: [SQL] insertable views - not copy-able ?  (Herouth Maoz <herouth@oumail.openu.ac.il>)
Список pgsql-hackers
what about this:
( it would be nice to have it working, specially for copying values from files into table with default fields, having
thedefault fields doing their job or initialising tables using reduced set of columns )
 

mydb=> create sequence MYSEQ;
CREATE
mydb=> create table MYTAB ( ID int4 default nextval('MYSEQ'), NAME text );
CREATE
mydb=> create view MYVIEW as select name from MYTAB;
CREATE
mydb=> copy MYVIEW from stdin;
Enter info followed by a newline
End with a backslash and a period on a line by itself.
>> jim
>> john
>> jack
>> \.
mydb=> select MYVIEW.*;
name
----
(0 rows)


--
dan peder
dpeder@infoset.cz



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] don't know whether nodes of type 719 are equal
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: [HACKERS] don't know whether nodes of type 719 are equal