This commit is contained in:
zhanglistar 2024-12-02 18:15:11 +08:00
parent ca49fcfc38
commit ccce7e8ba4
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,6 @@
a
a
a
a
a
a

View File

@ -0,0 +1,22 @@
DROP TABLE IF EXISTS t_enum_in_unknown_value;
CREATE TABLE t_enum_in_unknown_value (e Enum('a'=1, 'b'=2)) ENGINE=Memory;
INSERT INTO t_enum_in_unknown_value VALUES ('a');
SELECT * FROM t_enum_in_unknown_value;
SELECT * FROM t_enum_in_unknown_value WHERE e IN ('a');
SELECT * FROM t_enum_in_unknown_value WHERE e NOT IN ('a');
SELECT * FROM t_enum_in_unknown_value WHERE e IN ('a', 'b');
SELECT * FROM t_enum_in_unknown_value WHERE e NOT IN ('a', 'b');
SELECT * FROM t_enum_in_unknown_value WHERE e IN ('a', 'c');
SELECT * FROM t_enum_in_unknown_value WHERE e NOT IN ('a', 'c');
SELECT * FROM t_enum_in_unknown_value WHERE e IN ('a', 'b', 'c');
SELECT * FROM t_enum_in_unknown_value WHERE e NOT IN ('a', 'b', 'c');
SELECT * FROM t_enum_in_unknown_value WHERE e IN ('c');
SELECT * FROM t_enum_in_unknown_value WHERE e NOT IN ('c');