如何插入相同的記錄到數據表中(用最簡便的SQL語句)?

解决方案 »

  1.   

    insert tb
    select * from tb
      

  2.   

    insert into a select * from a
      

  3.   


    INSERT TB 
    SELECT ...UNION ALL
    SELECT .
      

  4.   


    select * into  新表 From 原表
      

  5.   

    insert into a select * from b
      

  6.   

    create table khyhli(id int , name varchar(10))
    insert into khyhli
    select '2','AAA' union all
    select '2','AAA'select * from khyhlidrop table khyhli
    ================
    /*
    id      name 
    2 AAA
    2 AAA
    */
      

  7.   

    我已經知道答案了
    set   rowcount   10   
      insert   into   表   select   ...   from   sysobjects
      set   rowcount   0
      

  8.   

    insert tb(字段2,字段3)
    select 字段2,字段3 from tb where ID=6