可能不是很符合你的要求,在07-09的时候
select * from table where 
convert(char(10),coldate,121) like '%1978%'

解决方案 »

  1.   

    SELECT *
    FROM test 
    where year(dates)>='1978'
      

  2.   

    SELECT *
    FROM test 
    where year(dates)>='#1978#'
      

  3.   

    rq用月/日/年表示
    select * from utable where rq>cdate('" & rq & "')
      

  4.   

    select * from utable where date >= '#" & t_date.text & "#'
      

  5.   

    dim mySTR as string
    select * from utable where date >= '#" & t_date.text & "#'
      

  6.   

    上面的写错了,sorry
    dim mySTR as string
    select * from utable where date >= '#" & mySTR & "#'
      

  7.   

    select * from utable where convert(char(10),udate,121) like '%1978%'
      

  8.   

    SQL语句中的日期格式为: #月月/日日/年年#如设要查某一日期 在程序中使用变量语句格式应为:
    M-月   D-日    Y-年"Select ... from ... where [Date]=#" & M "/" & D & "/" & Y & "#"
      

  9.   

    SQL语句中的日期格式为: #月月/日日/年年#如设要查某一日期 在程序中使用变量语句格式应为:
    M-月   D-日    Y-年"Select ... from ... where [Date]=#" & M "/" & D & "/" & Y & "#"