Posts by Filipe Lino • 1 point
1 post
-
-2
votes1
answer30
viewsA: How do I get back the id of the new record created in a table using cursor and Procedure in SQL Server?
$Pdo = Connect::getInstance(); $userid = $Pdo->lastInsertId(); $Pdo->query (" INSERT INTO users_address (user_id, street) VALUES ('{userid}', 'Cariru Street'); ");