Get contacted by recruiters directly with our newest chat feature!
Register now or log in to join your professional community.
using RETURNING clause
WITH deleted AS (DELETE FROM table WHERE condition IS TRUE RETURNING *) SELECT count(*) FROM deleted;
Cancel Report Answer