【发布时间】:2012-10-30 19:28:04
【问题描述】:
我在我的 asp.net 应用程序中使用 gridview,我想将数据集限制为在当前月份和年份提交的请求
我是应用程序开发的新手,并以以下方式思考
从 getdate() 函数中获取月份和年份部分,然后在 where 条件下将其与我们表中 receiveddate 列的月份和年份进行比较
我的选择语句如下所示
select requestno,receiveddate,businessneed from customerrequests 其中接收日期 = getdate()
上面的sql语句我是怎么实现的
【问题讨论】: