sql中判斷使用distinct是否多餘-學習總結

測試書中題目:加上distinct是否多餘? 不加distinct的話,顯示相似以下狀況: SELECT count( *  ) FROM `players` GROUP BY town count( * ) 1 2 2 加上distinct的話,顯示相似以下狀況: SELECT distinct count( *  ) FROM `players` GROUP BY town count( *
相關文章
相關標籤/搜索