28,406
社区成员
发帖
与我相关
我的任务
分享 sql="select count(*) as total from table"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if not rs.eof then
if rs("total")>=32 then
sql="delete from table where sid=1"
conn.execute(sql)
end if
end if
rs.close
set rs=nothing