我有一个查询:
select number,char_length(number) from all_numbers where char_length(number)!=10 and number='7034420082';
结果是:
+-------------+---------------------+
| number | char_length(number) |
+-------------+---------------------+
| 7034420082 | 11 |
+-------------+---------------------+
这怎么可能?number 显然是 10 个字符。我已经确认数字的两边都没有空格。
mysql> explain all_numbers;
+--------------------+-------------+------+-----+------------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------------+-------------+------+-----+------------+-------+
| number | varchar(16) | NO | PRI | | |.....