有人帮忙解决了吗?还要更新这几条记录,怎么办?用select 语句。

解决方案 »

  1.   

    方法一:用游标实现,用一个变量来技数就可以了。
    方法二:select top 30 * from into newtable from oldtable
            select * from newtable where pkcolume not in 
                   (select top 5 pkcolume from newtable)
      

  2.   

    insert into t4 values(1,'zhao')
    insert into t4 values(2,'qian')
    insert into t4 values(3,'zhao')
      

  3.   

    不好意思,第二个贴子没用,第一个有个语法错误,第二行多了一个from,
    不明白可以再问