日期:2014-05-16  浏览次数:20818 次

now 和 date
where nowx between "&t2&"  and "&t22&"

t2是date型
t22是date型

nowx是now型

我想查找表中和从t2到t22时间段的数据.

------解决方案--------------------
where nowx between #"&t2&"#  and #"&t22&"#
------解决方案--------------------
where nowx between "&t2&"  and "&t22&"

要看不同数据库的字符边界符。
access的用楼上的。
mssql和mysql用'