ASP 按关键字和日期 显示该关键字下所有行的内容

badtte 2019-01-11 09:12:09
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "select name from aaa where name2='ABC' and date >=#"&cxDate&"# and date<=#" &cx2Date & "#",conn
response.write cstr(rs(0))
rs.close


需要按date下对应的日期 显示出name2下的ABC 在name里的所有内容(如下图)

现在却只能显示出1条A的内容(如下图)


请问 问题出在哪呢?
...全文
231 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
漠叔 2019-01-12
  • 打赏
  • 举报
回复
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "select name from aaa where name2='ABC' and date >=#"&cxDate&"# and date<=#" &cx2Date & "#",conn
do while not (rs.eof or err)
response.write cstr(rs(0))
rs.movenext
loop
rs.close

28,409

社区成员

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

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