一、
<%=conn.execute("select count(*) from 表名 ")(0)%>
二、
SQL="select count(*) as 自定义 from 表名
response.write “&自定义&”
本文展示了如何使用SQL查询获取表中记录总数,通过执行`count(*)`命令,并将结果以自定义字段的形式呈现出来。
一、
<%=conn.execute("select count(*) from 表名 ")(0)%>
二、
SQL="select count(*) as 自定义 from 表名
response.write “&自定义&”
4904

被折叠的 条评论
为什么被折叠?