From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Frank Church <pgsql(at)adontendev(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: using schema-qualified names in INSERTs |
Date: | 2006-02-13 13:39:15 |
Message-ID: | 20060213133915.GD20796@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)svana(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2006-02-13 13:55:20 | Re: using schema-qualified names in INSERTs |
Previous Message | Frank Church | 2006-02-13 13:33:31 | using schema-qualified names in INSERTs |