top | item 44697741

(no title)

flysand7 | 7 months ago

Speaking of postgres, you don't even need a function, you can just use RETURNING clause of a modifying query to provide data source for the select:

    select *
    from (
        delete
        from users
        returning id
    )

discuss

order

No comments yet.