Untuk mengambil data id yang terakhir di insertkan bisa memakai fungsi berikut
LAST_INSERT_ID()
LAST_INSERT_ID() gives you the last autogenerated id on the connection you execute it on, it does not return the last insert id globally produced by the MySQL server.
sauce : https://stackoverflow.com/questions/5835677/last-insert-id-how-it-works-at-multi-users-environment
Tidak ada komentar :
Posting Komentar