set rs=conn.execute(sql)
if not rs.eof then
i=6
do while not rs.eof and i>0
nstitle=rs("nstitle")
if len(nstitle)>10 then
nstitle=left(nstitle,10)&"..."
end if
以上是一段代码,请问set rs=conn.execute(sql)是什么意思。
if not rs.eof then
i=6
do while not rs.eof and i>0
nstitle=rs("nstitle")
if len(nstitle)>10 then
nstitle=left(nstitle,10)&"..."
end if
以上是一段代码,请问set rs=conn.execute(sql)是什么意思。
conn 为数据库连接,包括了连接方式,用户名,密码等定义而成;
sql 一条读写数据库的语句
execute 为conn所属的一个方法,用来使用某个数据库连接执行一个sql语句。
execute(sql) 当然就是执行sql这个语句了
执行SQL语句,返回RecordSet记录集对象
conn 为数据库连接,包括了连接方式,用户名,密码等定义而成;
sql 一条读写数据库的语句
execute 为conn所属的一个方法,用来使用某个数据库连接执行一个sql语句。
execute(sql) 当然就是执行sql这个语句了