SQL count(*) and distinct

前端 未结 9 2032
野趣味
野趣味 2021-02-12 11:25

Why can\'t we use count(distinct *) in SQL? As in to count all distinct rows?

9条回答
  •  孤街浪徒
    2021-02-12 11:45

    select count (Tag_no) from tab_raw_tag_value where tag_no in (select distinct tag_no from tab_raw_tag_value)
    

提交回复
热议问题