去重后获取总条数 COUNT() 去重后要获取总数量SELECT COUNT(DISTINCT id) FROM user https://blog.csdn.net/Poison_M/article/details/85276718