DELETE RETURNING

From: Daniel CAUNE <d(dot)caune(at)free(dot)fr>
To: pgsql-sql(at)postgresql(dot)org
Subject: DELETE RETURNING
Date: 2006-10-22 04:21:37
Message-ID: 000001c6f591$90c01bd0$0b00a8c0@tedy
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

I have read in the future PostgreSQL 8.2 release note
(http://developer.postgresql.org/pgdocs/postgres/release-8-2.html) that
DELETE RETURNING will be supported. Tom, could please confirm that the
following PL/PGSQL statements will work on PostgreSQL 8.2?

INSERT INTO a(x, y)
DELETE FROM b
RETURNING x, current_timestamp;

IF NOT FOUND THEN
-- No data were deleted actually
END IF;

Thanks,

--
Daniel

Browse pgsql-sql by date

  From Date Subject
Next Message Leendert Paul Diterwich 2006-10-22 11:57:09 Crosstab question
Previous Message Ron Johnson 2006-10-22 04:17:24 Re: [SQL] Can we convert from Postgres to Oracle !!???