惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
M
MIT News - Artificial intelligence
D
Docker
量子位
T
Tailwind CSS Blog
人人都是产品经理
人人都是产品经理
月光博客
月光博客
有赞技术团队
有赞技术团队
J
Java Code Geeks
A
About on SuperTechFans
P
Proofpoint News Feed
Jina AI
Jina AI
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
V
V2EX
GbyAI
GbyAI
F
Fortinet All Blogs

博客园 - aaron.net

个人门户系统制作完成,欢迎测试~~ C#和VB 在动态添加用户控件时, 不一样啊。。。 - aaron.net 哈哈哈哈 微软也出错。。。。。。 用用户控件模仿datalist mediaplayer object 代码 - aaron.net AJAX 学习 ,,自己做了个计算器 ExecuteScalar 用SQL统计记录数 - aaron.net - 博客园 在网页中传递汉字的方法 - aaron.net - 博客园 class Property Get、Property Let 使用说明 制作网页时的23个经典代码 从魔兽中的英雄设计机制来窥探面向对象的思想 存储过程 满屏显示。。。。常用HTML代码 datalist,repeater,datagrid嵌套问题,,解决代码,,总结 Visual Studio 2005 Express Beta Products(Full Package) Download 控件有时需要声明,有时不需要声明的原因! web控件介绍(asp.net快速入门) ASP.NET设计七大绝招 超链接 css
用SQL统计记录数 - aaron.net - 博客园
aaron.net · 2005-06-05 · via 博客园 - aaron.net

Dim strConn, strSQL As String
Dim myConn As OleDbConnection
Dim myCommand As OleDbCommand
Dim dr As OleDbDataReader
dim cont as integer
cont = 0
strsql = "select * from table"
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(".") & "/db1.mdb"
myConn = New OleDbConnection(strConn)
myCommand = New OleDbCommand(strSQL, myConn)
myConn.Open()
dr=myCommand.ExecuteReader()
while dr.read()
CONT = CONT + 1
end while
dr.close()
myConn.Close()

response.write(CONT)