日期:2014-05-17  浏览次数:20821 次

无法得到记录总数
使用set   rs=conn.execute(sqlstr)后,recordcount=-1,rs.movelast不能执行

在线等候...

------解决方案--------------------
select count(*) as count from table
没有总数?
------解决方案--------------------
尽量不要那样用。
set rst=server.createobject( "adodb.recordset ")
rst.open "select * from tablename ",conn,1,1
rst.recordcount