request for feature: table value constructor (related to multivalue insert stmt)

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема request for feature: table value constructor (related to multivalue insert stmt)
Дата
Msg-id BAY20-F702372ED1F9ABE6CCDC30F9730@phx.gbl
обсуждение исходный текст
Список pgsql-hackers
Hello hackers

I think about solution multi values insert from TODO. There is one "hack" 
solution .. transformation from VALUES (a), (b) into SELECT a UNION ALL 
SELECT b. Or there is next (more general) solution .. implementation of 
table value constructor http://savage.net.au/SQL/sql-2003-2.bnf .

With TVC we can do:

INSERT INTO ... VALUES(r1), (r2), ...;
SELECT FROM a JOIN VALUES (r1), (r2), ...;
CREATE VIEW ... AS VALUES (r1), (r2), ...;

It's propably F641 sql-2003 noncore feature

Best regards
Pavel Stehule

_________________________________________________________________
Emotikony a pozadi programu MSN Messenger ozivi vasi konverzaci. 
http://messenger.msn.cz/



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Do a pass of code review for the
Следующее
От: Andrew Dunstan
Дата:
Сообщение: odd 7.4 build failure on new sparc machine