sql去重计算行数

SELECT Count(distinct(a.cardno)) from `room_tenant` a where  a.cardstatus=1

 

posted @ 2022-08-11 18:50  码海兴辰  阅读(22)  评论(0)    收藏  举报