16,717
社区成员
发帖
与我相关
我的任务
分享 Dim cn As New SqlClient.SqlConnection("你的连接字串")
Dim cm As New SqlClient.SqlCommand("select count(*) as counts from Tablea", cn)
cn.Open()
Dim count As Integer = CType(cm.ExecuteScalar, Integer)
cn.Close()
cn.Dispose()
cm.Dispose()