SQL count(*) and distinct

前端 未结 9 2267
野趣味
野趣味 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:49

    UberKludge, and may be postgre specific, but

    select count( distinct table::text ) from table
    

提交回复
热议问题