怎么用sql语句查询统计总数
作者:佚名 时间:2012-02-07
做网站建设的朋友我想经常会遇到要查询特定字段总数的时候,为此我们特意为大家总结出sql语句查询统计的代码.
select count(distinct(字段名)) from table
或
select count(*) from table group by 字段
此代码无论asp,php,.net开发员均可使用
如没特殊注明,文章均为上海联楷网络原创,转载请注明来自:http://www.linksj.com/help/20151126/n584.html