所以思路就是将数据表倒排,然后选取第一个
select top 1 from table order by id desc
呵呵那就是嵌套啊
select colname1,colname2 from as (select top 1 from table order by id desc)
INSERT INTO temp select * from testtable where uname='zhang'在SQL中 select、insert 、update、delete中insert是比较快的
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)