class= " lineNumbers "
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
|
class=
> " class= " id= " codeSnippet816740
<%
установите conn=Server.CreateObject («ADODB.Connection»)
conn. Provider= " Microsoft.Jet.OLEDB.4.0 "
conn. Раскройте (Server.Mappath («/db/northwind.mdb»))
установите rs = Server.CreateObject («ADODB.recordset»)
sql= " ОТБОРНОЕ Companyname, Contactname ОТ клиентов "
rs. Раскройте sql, conn
%>
<%for каждый x в rs. Поля
response.write («» & x.name & « | ")
next%>
<%do до rs.EOF%>
<%for каждый x в rs. Fields%>
<%Response.Write (x.value) %> |
<%next
rs.MoveNext%>
<%loop
rs.close
conn.close
%>
|