求一条sql语句 select distinct count(*) from 表名 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 统计nameselect name , count(*) from student group by name统计ageselect age , count(*) from student group by age统计name,ageselect count(*) from(select distinct name , age from student ) t select count(distinct COL1) ,count(distinct COL2) from TB1 寻高手,视图里是union的sql,但是建立不了视图索引了 求sql 求一个分组统计,并得出百分比的语句。 高手快进来啊看看 数据库表满了后的维护 如何优化存储过程!代码已贴出,以下代码执行需要13秒! 怎样利用QT开发手机界面(例如在s2c2440能运行,效果跟手机差不多) sql server2000自动停止服务 我从sql server中导数据表到access中。。。。。。有点问题~~~~~~~~~~ 在一个过程中某处判断是否在事务中有几种方法? 升级到 sql 2005 union 的问题 ? 存储过程 执行某条语句成功如何表示成功执行
select name , count(*) from student group by name
统计age
select age , count(*) from student group by age
统计name,age
select count(*) from
(
select distinct name , age from student
) t