|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
mysql_insert_id()
hi
i inserted a row into mysql table i need to know last autoincrement number what is most safe? do a select and check field which i inserted (in this way i must improve indexes) or use mysql_insert_id() ? but i'm not sure that it retuern the real number of row (because this table can be accessed/inserted many times simultaneously) thank you in advance |
|
#2
|
|||
|
|||
|
RE: mysql_insert_id()
mysql_insert_id()
|
|
#3
|
|||
|
|||
|
RE: mysql_insert_id()
I use mysql_insert_id in a very active application and have never had a problem. I read somewhere that it is based on the current connection, so you will never get the wrong id returned.
|
|
#4
|
|||
|
|||
|
RE: mysql_insert_id()
oki thx
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > mysql_insert_id() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|