akretschmer
Datenbank-Guru
- Beiträge
- 10.372
Code:
mysql> create table foo (id int, val enum('','1'));
Query OK, 0 rows affected (0.01 sec)
mysql> insert into foo values (1, '');
Query OK, 1 row affected (0.00 sec)
mysql> insert into foo values (2, '1');
Query OK, 1 row affected (0.00 sec)
mysql> select * from foo where val = 1;
+------+------+
| id | val |
+------+------+
| 1 | |
+------+------+
1 row in set (0.00 sec)
Was ist die Ursache? Es winkt ein 'Like' von mir ;-)