I am trying to insert data in sql server 2005 using PDO object in PHP.
Also I want to retrieve last inserted id which is auto generated.
any one help me.
In the session that the insert occured issue a
select scope_identity()
will return the last generated identity column inserted.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.