居住证审核不通过:sql = "select count(ry_id) from ry_content inner join bbs on ry_content.ry_id=bbs.id "
来源:百度文库 编辑:查人人中国名人网 时间:2024/07/07 09:26:49
这个统计写的语句对不对呀,如果统计出来后,要在页面上显示统计的多少,asp怎么写的呀,我这个就是统计的回贴的数量
晕,怎么一个人都没有回贴呀~~~
可是要联合起来才能查的出来啊!!
还是不行,sql = "select count(ry_id) from ry_content inner join bbs on ry_content.ry_id=bbs.id "
Set Rs = Conn.Execute(sql)
Response.Write Rs(0)
这样是统计的所有回贴的数量,我要的是统计每条主贴的跟贴数量!!
高手们出来帮我解决呀?~
晕,怎么一个人都没有回贴呀~~~
可是要联合起来才能查的出来啊!!
还是不行,sql = "select count(ry_id) from ry_content inner join bbs on ry_content.ry_id=bbs.id "
Set Rs = Conn.Execute(sql)
Response.Write Rs(0)
这样是统计的所有回贴的数量,我要的是统计每条主贴的跟贴数量!!
高手们出来帮我解决呀?~
sql = "select count(ry_id) from ry_content inner join bbs on ry_content.ry_id=bbs.id "
Set Rs = Conn.Execute(sql)
Response.Write Rs(0)
绝对可以
看看下面的代码
<%
set rs=server.CreateObject("ADODB.RECORDSET")
sql="select * from x where xx=xxx"
rs.open sql,conn,1,1
num=rs.recordcount
%>
直接调用
<%=num%>
sql="select * from……"
sql = "Select top 5 * from news"
sql = "Select * From [userinfo] Where userid = '"&userid&"'" ;
sql="select top 10 * from jjh_news where news_fenlei="&Request("news_fenlei")
sql="select * from shjia where username = '"&user&"
sql="select * from asdfghj where username='admin'"
sql="select * from exam_subject where id="& cint(id(j))是什么意思?
sql="select * from main where id="&id 这句啥意思
sql="select * from main where id="&id 这句啥意思
这句不对么?sql="select*form main where id ="+idx