SELECT
<column_name>,
COUNT(<column_name>) AS `value_occurrence`
FROM
<my_table>
GROUP BY
<column_name>
ORDER BY
`value_occurrence` DESC
LIMIT 1;
<column_name>
を置き換えます および<my_table>
。 1
を増やします N
を見たい場合 列の最も一般的な値。
SELECT
<column_name>,
COUNT(<column_name>) AS `value_occurrence`
FROM
<my_table>
GROUP BY
<column_name>
ORDER BY
`value_occurrence` DESC
LIMIT 1;
<column_name>
を置き換えます および<my_table>
。 1
を増やします N
を見たい場合 列の最も一般的な値。