📜  mysql 获取最后一个插入 id - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:03.334000             🧑  作者: Mango

代码示例5
//laravel controller
$newOrder = new Order();
...
...
$newOrder->save();

$last_id = $newOrder->id;