Re: using schema-qualified names in INSERTs

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: using schema-qualified names in INSERTs
Дата
Msg-id 43F08FC8.50501@archonet.com
обсуждение исходный текст
Ответ на using schema-qualified names in INSERTs  (Frank Church <pgsql@adontendev.net>)
Ответы Re: using schema-qualified names in INSERTs  ("John D. Burger" <john@mitre.org>)
Список pgsql-general
Frank Church wrote:
> Does PostgreSQL support INSERT syntax of this kind -
>
> insert into table (table.col1, table.col2, table.col3) values('one', 'two',
> 'three')?
>
> Trying it out generates an error. It works when the 'table' bit is removed from
> the column names.

What would this do for you? What would it mean if I wrote?
   INSERT INTO table1 (table2.col1, table3.col2) VALUES (...)

The list of columns can only apply to the table you've just named -
that's the only thing that makes sense.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: using schema-qualified names in INSERTs
Следующее
От: Tham Shiming
Дата:
Сообщение: Re: Dropping a database that does not exist