INSERT INTO bonus 
   SELECT ename, job, sal, comm 
   FROM emp 
   WHERE comm > 0.25 * sal 
   OR job IN ('PRESIDENT', 'MANAGER'); 

解决方案 »

  1.   

    insert into 表 (select 字段 from 表)
      

  2.   

    insert into 表 (select 字段 from 表)*****************************************************
               http://www.codeclub.net/bbs/
      

  3.   

    insert into table1 values(1,2,3,) select 1,2,3 from table2;
      

  4.   

    insert into table1 select * from table2;
      

  5.   

    INSERT INTO newtablename SELECT ...;
      

  6.   

    insert into yourtable select * from othertable;