Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql id of inserted row

-- For mysql
INSERT INTO table_name (col1, col2,...) VALUES ('val1', 'val2'...);
SELECT LAST_INSERT_ID();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #id #inserted #row
ADD COMMENT
Topic
Name
3+7 =