查询日期sql数据库的,总是不行,请教

isabao 2003-08-21 12:52:55
select * from History_Bifen,MatchList where History_Bifen.MatchType=MatchList.id and StartTime = '"&topinfo&"' order by StartTime desc
...全文
43 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
ttt2 2003-08-21
  • 打赏
  • 举报
回复
select * from History_Bifen ,MatchList where History_Bifen.MatchType=MatchList.id and StartTime = '"&topinfo&"' order by StartTime desc

history_bifen.starttime or matchlist.starttime
qdlanghua 2003-08-21
  • 打赏
  • 举报
回复
如果是SQL SERVER数据库,则你的语句完全可以运行;
如果是ACCESS数据库,则应修改为:
"SELECT * FROM History_Bifen,MatchList
WHERE History_Bifen.MatchType=MatchList.id
AND MatchList.StartTime = DATEVALUE('"&topinfo&"')
ORDER BY MatchList.StartTime DESC"
野马 2003-08-21
  • 打赏
  • 举报
回复
StartTime = #"&topinfo&"#
a_zhe_20 2003-08-21
  • 打赏
  • 举报
回复
ACCESS数据库?
select * from History_Bifen,MatchList where History_Bifen.MatchType=MatchList.id and StartTime = #"&topinfo&"# order by StartTime desc

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧