it is just a syntax,  why notselect * into b表 from a表 order by 字段orselect * into b表 from (select top 100 percent * from a表 order by 字段) c
?

解决方案 »

  1.   

    我想起来了
    可以指定TOp的话就没问题 Top99999999
    就一切搞定了
    我本来想把帖子删了呢
    既然有人来了就送给你了
    不过楼上说的有理
    我这只可以指定TOP而且要最大
    呵呵
      

  2.   

    --在子查询中,如果有排序就要指定top,如果你执行过的话,错误提示很明白
    --top 100 percent是按百分比(100%),可以保证是所有记录select * into b表 from(select top 100 percent * from a表 order by 字段) c
      

  3.   

    select * into b表  select * from a表 order by 字段
      

  4.   

    select * into b表 from a表 order by 字段
    不是最简单吗?
      

  5.   

    应是这样
    select * into b表 from a表 order by 字段
      

  6.   

    select * into b表 from a表 order by 字段

    select * into b表 from(select top 100 percent * from a表 order by 字段) c
    注意:因为在字查询中排序,要指明 top 100 percent