在表“test”中,把“AAA”字段里有“中国”和“BBB”里带有“2010年”的数据全部复制,然后再插入数据库里。

解决方案 »

  1.   

    insert into test select (这里不要包含自增ID列) from test where AAA like '%中国%' and BBB like '%2010年%'
      

  2.   

    insert into table select AAA,BBB from test Where charindex('中国',AAA) >0  And charindex('2010年',BBB) >0 
      

  3.   

    insert into db.dbo.tb select * from db.dbo.tb where aaa like '%中国%' and bbb like '%2010年%'
      

  4.   


     insert into tb(aaa,bbb)
     select aaa,bbb
     from test where aaa like '%中国%' and bbb like '%2010年%'