Optional
The last inserted id.
id
This value is not set for Postgres databases. If the last inserted id is required on Postgres, the select function must be used, with a RETURNING clause (INSERT INTO todos (title) VALUES ($1) RETURNING id).
select
RETURNING
INSERT INTO todos (title) VALUES ($1) RETURNING id
The number of rows affected by the query.
The last inserted
id
.This value is not set for Postgres databases. If the last inserted id is required on Postgres, the
select
function must be used, with aRETURNING
clause (INSERT INTO todos (title) VALUES ($1) RETURNING id
).