insert aliases?

From: "Wayne Armstrong" <wdarmst(at)bacchus(dot)com(dot)au>
To: pgsql-general(at)postgresql(dot)org
Subject: insert aliases?
Date: 2003-03-18 13:22:05
Message-ID: 200303181323.h2IDNmJb021499@mail.bacchus.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rosimildo da Silva 2003-03-18 13:24:40 Re: XML in PostgreSQL
Previous Message Olleg Samojlov 2003-03-18 09:57:32 Re: PLPGSQL