Sql 语句 查询 某一列 不重复值 和不重复值数量

来源:互联网 发布:手机淘宝怎么上门取件 编辑:程序博客网 时间:2024/04/29 21:12


查询不重复值总数

select count(distinct lieming ) from table where tiaojian=1



查询不重复值具体值


select distinct lieming from table where tiaojian=1


0 0
原创粉丝点击