asp ADO GetString函数与用GetString来提高ASP的速度第(2)
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/webdata/northwind.mdb"set rs = Server.CreateObject("ADODB.recordset")
rs.Open "SELECT Companyname, Contactname FROM Customers", connstr=rs.GetString(,,"</td><td>","</td></tr><tr><td>"," ")
%><table border="1" width="100%">
<tr>
<td><%Response.Write(str)%></td>
</tr>
</table><%
rs.close
conn.close
set rs = Nothingset conn = Nothing%></body>
</html>
Constant 常量 |
Value 值 |
Description 描述 |
---|---|---|
adClipString | 2 | Delimits rows by the rowdel parameter, columns by the coldel parameter, and null values by the nullexpr parameter 指定rowdel参数对行(记录)进行界定;通过coldel参数对列(字段)进行界定,通过nullexpr参数对空值进行界定 |
12下一页阅读全文