使用ADO.net的SQL查询 [英] sql query on month using ADO.net
本文介绍了使用ADO.net的SQL查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Ms Access数据库中,我正在编写一个字段以输入日期.
在程序中,我想选择特定月份的所有记录,即
in the Ms Access dbase i am writing a field to enter date.
in the program i want to select all records in a particular month i.e
select * from Table1 where dateSold = 'jan'
如何从访问文件中输入的日期中检索月份
how to retrieve month from date entered in access file
推荐答案
类似以下内容:
Something like this:
where DatePart("m", dateSold) = 1
使用
月(售出日期)= 1
希望这对您有帮助
Hi use
month(date Sold) = 1
hope this will helps to u
这篇关于使用ADO.net的SQL查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文