asp ADO GetString函数与用GetString来提高ASP的速度第1/2页

2019-04-02 02:33:28王冬梅

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下一页阅读全文