SQL入門(二)

一、分組計算 1.創建分組(group by) (1)使用 group by 關鍵詞:select col1,count( * ) from table group by col1; select countrycode from world.City group by countrycode ,返回 countrycode 的唯一值,相當於使用 distinct 關鍵詞。 select coun
相關文章
相關標籤/搜索