Do I do it right
First I insert the new INSERT INTO table
data into the INSERT INTO table
And then to get the id value of the last value inserted I use
SELECT LAST_INSERT_ID() FROM `table` LIMIT 0 , 1;
is the limit needed here or not and what does the query return without a limit at all?
I forgot everything, remind someone who knows
table
(name) VALUES ('Michael'), ('John'), ('Peter'); where id is AUTO_INCREMENT, then you will get the record ID with name = Michael, i.e. first auto-increment ID-shki. id john and Peter records are lost - dekameron