Blog pribadi untuk curhat, share tentang script, software, kuliah, project IT dan seputar IT.

MySQL LAST_INSERT_ID() how it works at multi-users environment

Tidak ada komentar

 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