这么插入是可以的,但是上一句select  top 10 * into b from a
就已经出错了。执行select * from sysobjects where name = 'b'查查

解决方案 »

  1.   

    select  top 10 * into b from a
    没有问题阿,已经生成了10行记录的表b了,但是再执行
    insert into b select * from a 就不行了
      

  2.   

    那就可能是你的主键重复的原因!
    因为你在插入表A之前已经插入了表A的前十条数据!try:
    select  top 10 * into b from a
    delete from b
    然后  insert into b select * from a 
      

  3.   

    sorry,更正前面的回答:
    try:drop table b
    select  top 10 * into b from a
    然后  insert into b select * from a
      

  4.   

    select  top 10 * into b from a
    用A表的前10行记录生成B表,
    insert into b select * from a 
    把A表的全部数据移到B表.
    你到底要做什么啊
      

  5.   

    我修改如下:select  top 10 * into b from a            insert into b select * from a 
                        where a.name not in (select name from b)
     执行:说b表已存在!
     我不想删除,只是想每天更新添加数据