insert语句一次只能插入一条数据吧!想插入多条数据是不是只有在客户端循环调用方法!

解决方案 »

  1.   

    INSERT 表名
    select * from 表1
      

  2.   

    insert into table1(col1,col2,col3) values(val1,val2,val3)insert into table1(col1,col2,col3) select col1,col2,col3 from table2
      

  3.   

    insert 表后边可以跟一个结果集例如:
    insert 表
    select .....from .....
    union all
    select .....from .....
    union all
    select .....from .....
      

  4.   

    insert table values()
    insert into table
    select ...
    union all
    select ...
      

  5.   

    insert语句一次只能插入一条数据吧错。一次可以插入记录集。
      

  6.   

    insert table select from uion all 
    select 
    很管用 呵呵~
      

  7.   

    insert table select from uion all 
    select 
    很管用 呵呵~