|
- mysql> select * from event where date;
- +------------+------+----------+
- | date | type | event_id |
- +------------+------+----------+
- | 2003-06-12 | Q | 1 |
- | 2003-06-11 | Q | 2 |
- | 2003-06-12 | T | 3 |
- | 2003-06-13 | Q | 4 |
- | 1999-09-09 | | 100 |
- | 1999-09-10 | | 101 |
- | 1999-09-11 | | 102 |
- | 1999-09-12 | | 103 |
- +------------+------+----------+
- 8 rows in set (0.00 sec)
复制代码
偶然的一次错误的输入,把date='1999-9-8'搞成了date='1999-9-*'
出现以下结果。why
- mysql> select * from event where date='1999-9-*';
- +------------+------+----------+
- | date | type | event_id |
- +------------+------+----------+
- | 0000-00-00 | | 99 |
- | 0000-00-00 | T | 98 |
- | 0000-00-00 | Q | 97 |
- +------------+------+----------+
- 3 rows in set (0.01 sec)
复制代码 |
|