count(distinct) 與group by 淺析

x在傳統關係型數據庫中,group by與count(distinct)都是很常見的操做。count(distinct colA)就是將colA中全部出現過的不一樣值取出來,相信只要接觸過數據庫的同窗都能明白什麼意思。web count(distinct colA)的操做也能夠用group by的方式完成,具體代碼以下:sql select count(distinct colA) from ta
相關文章
相關標籤/搜索