mysql id of inserted row
snippet in sql

mysql id of inserted row

user1158

-- For mysql
INSERT INTO table_name (col1, col2,...) VALUES ('val1', 'val2'...);
SELECT LAST_INSERT_ID();