select * into NewTableName from xsd2 Where Convert(char,ccrq,112) like '200305%'

解决方案 »

  1.   

    select * into TableName from xsd2 Where Convert(char,ccrq,112) like '200305%'
      

  2.   

    select * into NewTable from xsd2 where ccrq between '20030501' and '20030530'
      

  3.   

    select * into NewTable from xsd2 where ccrq between '2003-05-01' and '2003-05-30'
      

  4.   

    to: hjb111(苦行僧) 
    5月可是有31号的。
      

  5.   

    select * into NewTable from xsd2 where ccrq between '2003-05-01' and '2003-05-31'
      

  6.   

    select * into NewTable from xsd2 where year(ccrq)=2003 and month(ccrq)=5