Thread: Table Qualifiers in Update Statement

Table Qualifiers in Update Statement

From
"Marcel Thibault"
Date:

Hello,

are table qualifiers acceptable in UPDATE statements in a PostgreSQL DB.

For instance is this not allowed?

update tablea set tablea.fielda='valuea';

Thanks,

Marcel Thibault

Lead Consulting Engineer

MThibault@novell.com

Phone: (613) 298-3089

Fax: (208) 988-6303

Novell, Inc.

Software for the Open Enterprise

www.novell.com/open



Re: Table Qualifiers in Update Statement

From
Martijn van Oosterhout
Date:
On Mon, Oct 31, 2005 at 10:21:18AM -0700, Marcel Thibault wrote:
> Hello,
>
> are table qualifiers acceptable in UPDATE statements in a PostgreSQL DB.
>
> For instance is this not allowed?
>
> update tablea set tablea.fielda='valuea';

No, but you don't really need to since the table name is already given
in the update statement. Why do you want to give it again?

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