日期:2014-05-19  浏览次数:20413 次

求一简单sql语句,在线等,急。
数据库中有一year和month字段。我想这样

...     where   year=当然的年   and   month=当前的月

怎么写呀。

------解决方案--------------------

where year=year(getdate()) and month=month(getdate())