Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Looks like Postgres' RETURNING clause... The latter works with inserts and updates, too, e.g.:

    with foo as (
    insert ... values ...
    returning *
    ),
    bar as (
    insert ... select ... from foo
    returning *
    )
    select ... from foo, bar, baz ...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: