![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi, everyone. everytime it would return 0 after I insert a row and use the get_last_id() to get the inserted auto_increment id. I don't know what's the reasion and it's so confusion. Can you give some helps? |
|
6. insert into test_tab(f2) values("b"); 7. select * from test_tab; f1 f2 1 a 2 b 8. select last_insert_id(); LAST_INSERT_ID() 0 |
#3
| |||
| |||
|
|
hi, everyone. everytime it would return 0 after I insert a row and use the get_last_id() to get the inserted auto_increment id. I don't know what's the reasion and it's so confusion. Can you give some helps? and the following the process to reproduce. 1. open the "mysql query browser"; |
![]() |
| Thread Tools | |
| Display Modes | |
| |