ACCESS在class表中查找满足日期条件的SQL语句
来源:百度知道 编辑:UC知道 时间:2024/05/17 12:19:02
请写出ACCESS在class表中查找满足某年某月某日到某年某月某日条件的SQL语句
1. class表中有years,months,days,hours,mintues,name,stu
2.查询条件:从某年某月某日 到某年某月某日 ,并且name字段中有“yz”二字 ,stu字段中有“xy”二字 ,
3.查询结果按年月日倒排序
1. class表中有years,months,days,hours,mintues,name,stu
2.查询条件:从某年某月某日 到某年某月某日 ,并且name字段中有“yz”二字 ,stu字段中有“xy”二字 ,
3.查询结果按年月日倒排序
select * from [class] where years>年or years>年 and months>月 or month>月 and days>日 or days<日 and name="yz" and stu="xy" order by years desc
倒序排列年就可以了,一般数据库有一个隐藏的排序,就是添加最后的最先显示。
设计有问题,years,months,days,hours,mintues 用一列就可以了,把它们合并为 date,例:
SELECT * FROM [class] WHERE [date] > #1990-1-1# AND [date] < #2010-1-1# AND [name] LIKE '%yz%' AND [stu] LIKE '%xy%' ORDER BY [date] DESC
ACCESS在class表中查找满足日期条件的SQL语句
access violation at address 01307875 in module IE_helper class.dll read ofaddress 0000000c
'x' : cannot access protected member declared in class 'Point'
media player class在哪下载?
JAVABEAN class文件应该放在哪里?
怎么在Access里发请贴.
access在哪能下
在课上,在上课的时候 是用in the class还是on the class?
在java 程序代码中 “类名.class" 怎么理解??比如下面程序中的ConnectionFactory.class
"DBQ="+server.mappath("#class.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"