ASP问题!!紧急求救!!!

来源:百度知道 编辑:UC知道 时间:2024/05/31 07:31:29
我想读取数据库里的指定记录,不知道用什么语句,快简单的教我,SQL的我已经基本掌握了……

最好举个例子,我现在很急,最先教会我的这分就给他啦
要VB语言啊

一个简单的例子,可以类似的修改,不懂再问

<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("example.mdb")

exec="select * from example"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
%>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<%do while not rs.eof%><tr>
<td><%=rs("email")%></td>
<td><%=rs("userid")%></td>

</tr><%
rs.movenext
loop
%>
</table>

你要实现的是什么