漫游的备忘录
asp用表格输出数据表所有数据
2011-9-30 漫游
'ASP用表格输出数据表所有数据,方便查看数据,例如没法用access或mssql打开的情况下

<%

rs.open "Select * From [表名]",Conn,1,1

%>

<table border="1">

<tr>

<%

for i=0 to Rs.Fields.Count-1

%>

<td bgcolor="#0099FF"><%=Rs(i).Name%></td>

<%

next

%>

</tr>

<%

do while Not Rs.EOF

%>

<tr>

<%

for i=0 to Rs.Fields.Count-1

%>

<td><%=Rs(i)%></td>

<%

next

%>

</tr>

<%

Rs.MoveNext

Loop

%>

</table>

<%

rs.close

%>