Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

insert query return id mysql

INSERT INTO table_name (col1, col2,...) VALUES ('val1', 'val2'...);
SELECT LAST_INSERT_ID();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #query #return #id #mysql
ADD COMMENT
Topic
Name
1+2 =