我发现如果结果表字段是西里尔文(可能还有其他非拉丁文),则结果表字段比其最长的字符串值长得多。我需要得到非常紧凑的结果。
mysql> select * from tmp7 limit 1;
+-------+
| dir |
+-------+
| latin |
+-------+
1 row in set (0.00 sec)
mysql> select * from tmp7 limit 2;
+------------------+
| dir |
+------------------+
| latin |
| Кирилица |
+------------------+
2 rows in set (0.00 sec)
mysql> select * from tmp7;
+----------------------------------+
| dir |
+----------------------------------+
| latin |
| Кирилица |
| КирилицаКирилица |
+----------------------------------+
3 rows in set (0.00 sec)
mysql> show create table tmp7;
+-------+---------------------------------------------------------------------------------------------+
| Table | Create Table |
+-------+---------------------------------------------------------------------------------------------+
| tmp7 | CREATE TABLE `tmp7` (
`dir` varchar(60) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
+-------+---------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
这是MySQL的错误吗?有什么解决方法吗?
mysql Ver 14.14 Distrib 5.5.32,适用于使用 readline 6.2 的 debian-linux-gnu (x86_64)