mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
11 lines
234 B
Text
11 lines
234 B
Text
CREATE TABLE t1 (f1 INT DEFAULT NULL, UNIQUE KEY i1 (f1)) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES (NULL);
|
|
INSERT INTO t1 VALUES (NULL);
|
|
SELECT COUNT(*) = 2 FROM t1;
|
|
COUNT(*) = 2
|
|
1
|
|
SELECT f1 IS NULL FROM t1;
|
|
f1 IS NULL
|
|
1
|
|
1
|
|
DROP TABLE t1;
|