catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.84k stars 1.15k forks source link

the result of exec insert sql is a object , not a insert_id, god #664

Closed wanghongjun2014 closed 6 years ago

wanghongjun2014 commented 6 years ago

the result of exec insert sql is a object, not a insert_id, god

catfan commented 6 years ago

Please check out our documentation seriously about how to use the return PDOStatement, and how to get the last inserted id.

https://medoo.in/api/insert