asp 查询单表中的两个字段都相同的数据,然后循环显示的代码,求救高手指点!!!

2025-05-17 22:15:12
推荐回答(2个)
回答(1):

conn=(数据库连接)
set rs=server.createobject("adodb.recordset")
sql="select * from Stinfo where 节='"&part&"'and 题型='"&sttype&"' order by id desc"
rs.open sql,conn,1,1
do while not rs.eof
response.write "<(要显示内容)>"
rs.movenext
loop
rs.close
set rs=nothing
关闭数据库

回答(2):

那就是SQL查询不到数据了。