What is the best way to get the auto-id value in the same SQL with a SELECT?
A forum said adding this \"; has Return Scope_Identity()\" in the end
; has Return Scope_Identity()
In postgres the best way is to do something like:
insert into foos(name) values ('my_foo') returning id;