insert aliases? - Mailing list pgsql-general

From Wayne Armstrong
Subject insert aliases?
Date
Msg-id 200303181323.h2IDNmJb021499@mail.bacchus.com.au
Whole thread Raw
In response to escaping function  (Dennis Gearon <gearond@cvc.net>)
Responses Re: insert aliases?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi,
 I get an error on delete, insert and update statements of the form :-
insert into fault_log t1 select....
update fault_log t1 set ...
delete from fault_log t1 where ....
etc.
It seems that postgress doesn't accept aliases for the tablename in updates,
inserts, and deletes as it does do for selects ????

All the above work with just
insert into fault_log select ... etc,
but not having the shorthand alias for the table name to use in a subselect is
a royal pain (porting from a database that does allow aliases here)

Oh well - lots of rewriting of insert, update and delete statements to do -
icky, icky icky :)

Regards,
Wayne

pgsql-general by date:

Previous
From: Olleg Samojlov
Date:
Subject: Re: PLPGSQL
Next
From: Kyle
Date:
Subject: Listing Users