怎么将SQL查询分析器的查询结果显示在ASP中的某一控件中?
SELECTTrain_Num,COUNT(*)FROMOrderInformationWHEREOrder_NumBETWEEN20110701000001AND201...
SELECT Train_Num,COUNT(*)
FROM OrderInformation
WHERE Order_Num BETWEEN 20110701000001 AND 20110701001000
GROUP BY Train_Num
ORDER BY COUNT(*) DESC; 展开
FROM OrderInformation
WHERE Order_Num BETWEEN 20110701000001 AND 20110701001000
GROUP BY Train_Num
ORDER BY COUNT(*) DESC; 展开
展开全部
<%
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="& Server.Mappath("数据库.mdb")
set conn=Server.CreateObject("ADODB.Connection")
conn.Open connstr
set rs=conn.execute("select Train_Num,COUNT(*) from OrderInformation where Order_Num between 20110701000001 and 20110701001000 group by Train_Num order by COUNT(*) desc")
response.write(rs("要输出显示的字段"))
%>
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="& Server.Mappath("数据库.mdb")
set conn=Server.CreateObject("ADODB.Connection")
conn.Open connstr
set rs=conn.execute("select Train_Num,COUNT(*) from OrderInformation where Order_Num between 20110701000001 and 20110701001000 group by Train_Num order by COUNT(*) desc")
response.write(rs("要输出显示的字段"))
%>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询