ramsql
ramsql copied to clipboard
return id
When I have a table created like this:
CREATE TABLE myTable (id SERIAL PRIMARY KEY, field varchar);
and I do a query like this:
INSERT INTO myTable (field) VALUES (:field) RETURNING id;
I expect the id to be filled with the inserted id of the new row.