jabber
answered May 31 '22 00:00
LAST_INSERT_ID() is MySQL function which return last insert id ,
example :
insert into products set name='Titan watch';
select LAST_INSERT_ID()
so in the above query, after inserting the product at the products table, the next query return the last inserted id in the products tables, products should id with auto-increment value.