select * from user where month(time)=9 order by time

解决方案 »

  1.   

    select * from user where month(time)='9'
      

  2.   

    Select * from user where  DATEPART(month,time) = 9 order by time desc
      

  3.   

    "Select * from user where month(time)=9 order by time desc"
      

  4.   

    select * 
    from user 
    where month(time)=9
      

  5.   

    select * from user where month([time])=9 order by [time]
      

  6.   

    Select * from user where month(time)=9 order by time desc
      

  7.   

    select * from [user] where month([time])=9 order by [time]
      

  8.   

    按我想肯定还有年份的限制吧
    select * from [user] where YEAR([time])='2003' AND month([time])=9 
    order by [time]
      

  9.   

    按我想肯定还有年份的限制吧
    select * from [user] where YEAR([time])=2003 AND month([time])=9 
    order by [time]