求一简单sql语句,在线等,急。
数据库中有一year和month字段。我想这样
... where year=当然的年 and month=当前的月
怎么写呀。
[解决办法]
where year=year(getdate()) and month=month(getdate())
发布时间: 2012-02-02 23:57:14 作者: rapoo
求一简单sql语句,在线等,急。
数据库中有一year和month字段。我想这样
... where year=当然的年 and month=当前的月
怎么写呀。
[解决办法]
where year=year(getdate()) and month=month(getdate())