以前用SQLServer时,只要用where year(日期)=2005就可以找出2005年的,月份也是一样。可在Access中不行,用where datepart(year,日期)=2005也不行,救命啊!!
解决方案 »
- C# 里的sql查询语句错误
- 请大家讨论,asp.net中,ArrayList类型的全局静态变量和cache变量进行比较,在性能、速度、等各个方面越全面比较越好,
- winform隐藏显示及变量数值保存
- 这样的功能c#怎么实现,可用什么控件吗
- 我用程序可以找到局域网内的所有SQL服务器名,我怎么才能得到他们的IP地址呢??急
- 那为把下面的代码改成c#版
- 急!求助C#调用C的dll ,高手请帮帮忙,先谢谢了!!
- 可否利用AFORGE或者直接用C#通过摄像头识别地面黑线呢?
- c#调用API(kernel32)获取内存信息。
- 求各位大神看看我这个安装出现什么问题了,刚上大学什么都还不懂
- 怎么求的abcdefg这个字符串的长度啊???
- C#的問題!
up that is only a sample ,there is not a actual means
sSql = "insert into search(searchdate,amount) select year(checkdate) & '年',sum(amount) as amountsum from [check] where year(checkdate) between " & Me.cmbYear(2).Text & " and " & Me.cmbYear(3).Text & " group by year(checkdate) order by year(checkdate)"