2011-04-09 29 views
-1

可能重复:
How to get Insert id in MSSQL in PHP?我怎样才能插入ID为SQL Server使用PHP

IM通过PHP和SQL Server 2000在项目中工作,我怎么能得到插入ID喜欢与mysql一起工作的mysql_inserted_id函数。 即时通讯在互联网搜索和找不到东西...请留下示例如何使用它

+2

除此之外,也总是搜索堆栈溢出!请参阅[如何在MSSQL中获取插入ID在PHP?](http://stackoverflow.com/questions/574851/how-to-get-insert-id-in-mssql-in-php) – 2011-04-09 18:39:45

+1

这是什么不同比[最后一次你问这个问题](http://stackoverflow.com/questions/5564875/how-i-can-get-the-id-generated-in-the-last-query-by-php-with - SQL服务器)? – Charles 2011-04-09 19:15:08

回答