How to capture the unique identifier after the insert
63897
How do I return a new IDENTITY column value from an SQLServer SELECT statement?
154568
Optimal way to ignore duplicate inserts?
26403
How to Convert 18 char Id to 15 char Id using substring in Apex trigger
36268
Insert multiple rows WITHOUT repeating the "INSERT INTO ..." part of the statement?
47928
CodeIgniter activerecord, retrieve last insert id?
47065
Predict next auto-inserted row id (SQLite)
130341
SQL Insert Statement Persists Two Records When I Need Just One
145311
Generate an increment ID that is unique for a given value of a foreign key
69237
Generate next Id as per the max id in database using Java
143217
Auto-increment ids with multiple inserts in mysql/mariadb
133342
How to cast variables in T-SQL for bulk insert?
37395
Get the last inserted row ID (with SQL statement)
28408
What's the best way to get the last inserted id using sqlite from Java?
150733
Create an ID (row number) column
69797
How do I get the last inserted ID of a MySQL table in PHP?
135259
How do you copy a record in a SQL table but swap out the unique id of the new row?
118632
How to set identity_insert to on in SQL Server