计算SQL Server 2005中的总行数 [英] Count total number of rows in SQL Server 2005

查看:65
本文介绍了计算SQL Server 2005中的总行数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Windows应用程序中使用C#以编程方式计算sql server 2005数据库表中可用的总行数。

I want to count the total number of rows available in a table of sql server 2005 database programmatically by using C# in windows application.

推荐答案

选择计数(colname) )来自tablename
Select count (colname) from tablename


这篇关于计算SQL Server 2005中的总行数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆