去重查詢可以查尋某個表中,某個字段的類别數量和種類 select count(DISTINCT field_name from) tb_name select DISTINCT field_name from tb_name