A
Size: a a a
M
M
root@localhost [test]> select count(distinct var) as uniq_var_amount, group_concat(distinct var) as 'uniq_var', count(var) as count_all_var_rows from test.test;
+-----------------+-----------+--------------------+
| uniq_var_amount | uniq_var | count_all_var_rows |
+-----------------+-----------+--------------------+
| 5 | 1,2,3,4,5 | 15 |
+-----------------+-----------+--------------------+
1 row in set (0.00 sec)
AK
AK
РН
E
AK