当前位置: 代码迷 >> Sql Server >> 求一简单sql语句,
  详细解决方案

求一简单sql语句,

热度:146   发布时间:2016-04-27 21:49:34.0
求一简单sql语句,在线等,急。
数据库中有一year和month字段。我想这样

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

怎么写呀。

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

where year=year(getdate()) and month=month(getdate())
  相关解决方案