统计不重复的字段

select count(distinct(需要统计不重复的字段)) from 表;

select count(*) from (select distinct * from table);

猜你喜欢

转载自www.cnblogs.com/bingyublog/p/9238828.html
今日推荐