日期:2014-05-17  浏览次数:21003 次

求一段SQL语句!
展览时间如:2007-5-21,结果时间为:2007-5-30,
是二个字段.
现在做查询该条记录;现在我输入2007-5-21或2007-5-30,当然可以找到这条记录,如果我添写是2007-5-23,也要找到该记录,怎么同时满足这二个条件,

------解决方案--------------------
select * from table where 展览日期 <=输入日期 and 结束日期> =输入日期
------解决方案--------------------
access的用法 sql= "select * from table where begintime> =# "&输入日期& "# and endtime> =# "&结果时间& "# "
sql的用法:access的用法 sql= "select * from table where begintime> = "&输入日期& " and endtime> = "&结果时间& " "