1 Read the CCI code to implement this feature.
2 Add the test cases.
Use the following SQL statements:
drop table if exists table11;
create table table11(city enum('BeiJing', 'ChengDu', 'QingDao', 'DaLian'), nationality enum('China', 'Korea', 'Japan'));
insert into table11 (city, nationality) values ('BeiJing', 'Japan'),('ChengDu','China'),('QingDao', 'Korea');
Result: Create table successfully and insert the three rows.
Using the following SQL statement will throw an exception:
insert into table11 (city, nationality) values ('Peking', 'China');