Access数据库代码问题ASP语言.

来源:百度知道 编辑:UC知道 时间:2024/07/01 08:00:26
如图,我要用代码拿出里面的字段名和数据
该如何做.
具体取出的数据有:
productclass
classID className
productID productName
该如何操作.有一点点要求,就是.取出全部数据.关按最近时间为首依次排列.

感谢!在线!等着!
productclass 这个表里的
classID=29 ClassName 字段名一个
productID ProductName 字段名一个
在线急等!!!!
回复坏蛋***:谢谢你的回答,我的意思是.在一个页面中调用数据库的内容显示在这个页面上.我先试试啊.

有些不是很明确,先看看是不是你想要的
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from [productclass] where classID=29 order by productID desc" ,conn,1,1
if not (rs.bof and rs.eof) then
do while not rs.eof
response.Write ""&rs("ClassName")&" "&rs("productID")&" 密码:"&rs("ProductName")&"<br>"
rs.movenext
loop
else
response.Write "读取错误"
end if
rs.close