insert into student ([name],defaltage) output inserted.IDs values(‘{0}‘,{1})
这里输出刚增加的数据的自动编号ids是多少
注意output 的位置
sql
原文:http://www.cnblogs.com/nanxiaoxiang/p/5141450.html