Answers for "how to get the last primary id in mysql"

SQL
0

find last id

//laravel controller
$newOrder = new Order();
...
...
$newOrder->save();

$last_id = $newOrder->id;
Posted by: Guest on November-26-2020

Code answers related to "how to get the last primary id in mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language