首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

求一简单sql语句,

2012-02-02 
求一简单sql语句,在线等,急。数据库中有一year和month字段。我想这样...whereyear当然的年andmonth当前的

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

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

怎么写呀。

[解决办法]

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

热点排行
Bad Request.