@文心快码BaiduComateerror 1171 (42000): all parts of a primary key must be not null; if you need 文心快码BaiduComate 错误码 1171 (42000) 的含义 错误码 1171 (42000) 是一个 MySQL 数据库错误,表明在创建或修改表时违反了主键约束。具体来说,这个错误表明主键的一部分或全部字段被设置为允许空值(...
Cannot create table 1171 - All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead On QA_5_1 works, on master it doesn't (it adds the UNIQUE key as PRIMARY). The queries are different. QA_5_1 CREATE TABLE`pw`.`test`(`a`INTUNSIGNEDNOT NUL...
Error 1171: All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead