update teacher set name ='111' where id in(286,289);
print @@rowcount;--或select将查出,是@@rowcount,不是@rowcount或rowcount或其它
20181023
获取insert主键:
select @@IDENTITY
update teacher set name ='111' where id in(286,289);
print @@rowcount;--或select将查出,是@@rowcount,不是@rowcount或rowcount或其它
20181023
获取insert主键:
select @@IDENTITY
转载于:https://www.cnblogs.com/yanan7890/p/8746327.html