Add the USING list clause: usinglist A list of table
expressions, allowing columns from other tables to appear in the WHERE condition.
This is similar to the list of tables that can be specified in the FROM Clause of a SELECT statement; for
example, an alias for the table name can be specified. Do not repeat the target
table in the usinglist, unless you wish to set up a self-join. See this page for more info: http://www.postgresql.org/docs/8.3/static/sql-delete.html So something like this: delete from ……… using
DOCS where ……………… Full syntax description: DELETE FROM [ ONLY ] table [ [ AS ] alias ] [ USING usinglist ] [ WHERE condition | WHERE CURRENT OF cursor_name ] [ RETURNING * | output_expression [ AS output_name ] [, ...] ] From:
pgsql-general-owner@xxxxxxxxxxxxxx [mailto:pgsql-general-owner@xxxxxxxxxxxxxx] On Behalf Of c k hello, |