问个简单的问题,关于查询的 select 区号from 表group by 区号 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select distinct(区号) from 表 --查询出不同的区号select count(distinct(区号)) from 表 --查询出区号的个数 select distinct 区号列 from tselect count(distinct 区号列) from t select 区号from 表group by 区号select @@rowcount select 区号,count(*) as 个数 from 表group by 区号select * from 表group by 区号order by 区号 sqlserver 字符转码 sqlserver2005安装问题 还是行列转的问题,如何用povit转两个列? 求一条简单的sql语句或者存储过程 如何在查询时取得图片的大小 IDispatch error #3149,这个错误的含义是什么?? 可能这个表被锁了 快速数据入库(bcp导内存中的数据是否能实现??sql 2008)有那些好方法? 白痴问题!!!!!!!!急!!!!!!!! 在TSQL中,单引号能转义吗? 曲线存储问题 郁闷:( 怎么我的sqlserver2000 不能自动远程备份呢?
select count(distinct(区号)) from 表 --查询出区号的个数
from 表
group by 区号select @@rowcount
group by 区号select * from 表
group by 区号
order by 区号