回 帖 发 新 帖 刷新版面

主题:如何提出两个时间之间的所有记录

如何提出两个时间之间的所有记录

start_time=2007-11-21 12:10:1
end_time=2007-11-25 12:10:1
sql="select infotime from news where infotime>"&cdate(start_time)&" and infotime<"&cdate(end_time)
这样写不成功

回复列表 (共2个回复)

沙发

sql="select infotime from news where infotime>#"&cdate(start_time)&"# and infotime<#"&cdate(end_time)&"#"
试试

板凳

高手哦~!!感谢

我来回复

您尚未登录,请登录后再回复。点此登录或注册