Re: using schema-qualified names in INSERTs - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: using schema-qualified names in INSERTs
Date
Msg-id 20060213133915.GD20796@svana.org
Whole thread Raw
In response to using schema-qualified names in INSERTs  (Frank Church <pgsql@adontendev.net>)
List pgsql-general
On Mon, Feb 13, 2006 at 01:33:31PM +0000, 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.

No, and frankly, I can't see why it should. I mean, it's obvious that
you're inserting into "table", so why does it need to be mentioned
again for each and every column?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: Frank Church
Date:
Subject: using schema-qualified names in INSERTs
Next
From: Richard Huxton
Date:
Subject: Re: using schema-qualified names in INSERTs