insert 新表
  select * from 表 where ......

解决方案 »

  1.   

    select * into newtable from oldtable
      

  2.   

    要插入的表已存在:insert 新表   select * from 原表 where 條件
    要插入的表不存在:select * into 新表 from 原表 where 條件
      

  3.   

    insert into newtable(a,b,c)
    select a,b,c from oldtable
    a,b,c這幾個字段的類型一定要一樣。
    也就是前後所選擇的字段的類型要一樣
    否則出錯
      

  4.   

    用select column1,column2,column3 into newtable from oldtable
    where column1=..