Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

is mysql insert id safe to use


is mysql insert id safe to use  using -'php,mysql'

According to the PHP documentation, mysql_insert_id takes the last inserted id from the mysql table.

My question is, if I have a website that inserts more than 2 rows per second to the DB, can I use the mysql_insert_id and get the correct ID I am referring to in the INSERT query a line before?
    

asked Oct 7, 2015 by sujata naik
0 votes
11 views



Related Hot Questions



Government Jobs Opening


...