社区
ASP
帖子详情
如何获取select count(*)返回值
fighter222
2008-03-21 03:25:50
我写了一条sql语句,select count(*) from xxxxxxx
我想获取这条语句的返回值,应该怎样写
...全文
1143
5
打赏
收藏
如何获取select count(*)返回值
我写了一条sql语句,select count(*) from xxxxxxx 我想获取这条语句的返回值,应该怎样写
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
fighter222
2008-03-21
打赏
举报
回复
好的,我试下
MeXP
2008-03-21
打赏
举报
回复
也可以用别名
select count(*) as rscount from xxxxxxx
然后rs("rscount")可以取得
银狐被占用
2008-03-21
打赏
举报
回复
给count(*)一个别名。
select count(*) as c from tb where...
rs("c")
No_Data_Found
2008-03-21
打赏
举报
回复
set rs = conn.execute(sql)
response.write rs(0)
No_Data_Found
2008-03-21
打赏
举报
回复
rs(0)
ASP中获得
Select
Count
语句
返回值
的方法
主要介绍了ASP中获得
Select
Count
语句
返回值
的方法,一般用在统计数据时使用
Select
Count
语句,以此一获得查询到的行数,需要的朋友可以参考下
第3周作业xin(副本) 详解
一.单选题(共10题,100.0分) 1 EMP表如下所示,下面哪些SQL语句的
返回值
为3( B)。 EMP 雇员号 雇员名 部门号 工资 001 张山 02 2000 010 王宏达 01 1200 056 马林生 02 1000 ...
select
count
(*) from
C#中
获取
SELECT
COUNT
的
返回值
的方法
本文将介绍如何使用C#来执行
SELECT
COUNT
查询,并
获取
其
返回值
。然后,我们创建了一个SqlCommand对象,并传入查询语句和数据库连接对象。使用ExecuteScalar()方法来执行查询,并将返回的结果强制转换为int类型。在...
Mybatis之
Select
Count
(*)的
返回值
类型
<
select
id="queryAlarmStatisticalAnalysis4System" parameterType="AlarmMailSendLog" resultType="java.lang.Integer">
select
count
(*) from mon_alarm_mail_send_log where...
c#
select
count
mysql_C#中怎么
获取
Select
count
(*) 的
返回值
?
SqlConnectionConn=newSqlConnection(DataEnter.strConn);...SqlCommandCmd=newSqlCommand("
select
count
(*)asnumberfromAdmin",Conn);SqlDataReaderDr=Cmd.ExecuteReader();...SqlConnection Conn = new Sq...
ASP
28,390
社区成员
357,068
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章