Answers for "get insert id in mysql stored function"

SQL
2

mysql id of inserted row

-- For mysql
INSERT INTO table_name (col1, col2,...) VALUES ('val1', 'val2'...);
SELECT LAST_INSERT_ID();
Posted by: Guest on March-03-2020
0

insert query return id mysql

INSERT INTO table_name (col1, col2,...) VALUES ('val1', 'val2'...);
SELECT LAST_INSERT_ID();
Posted by: Guest on July-27-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language