select * into 你要生成的表名 from temptable1 where I_intime>='2007.01' and not exists 
(select * from temptable1 where I_intime<'2007.01' and i_R_num='I_r_num'and i_company='I_company')

解决方案 »

  1.   

    use wjm_zlfx_system_070615
    goselect * into TAB_New from temptable1 where I_intime>='2007.01' and not exists 
    (select * from temptable1 where I_intime<'2007.01' and i_R_num='I_r_num'and i_company='I_company')
      

  2.   

    select * into newTable from tableold where ~~~~~~
      

  3.   

    select * into tablename from temptable1 where I_intime>='2007.01' and not exists 
    (select * from temptable1 where I_intime<'2007.01' and i_R_num='I_r_num'and i_company='I_company')