MySQL error code
MySQL error 1171
MySQL server error 1171 is ER_PRIMARY_CANT_HAVE_NULL, reported with SQLSTATE 42000.
All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead
| Error | 1171 |
|---|---|
| Name | ER_PRIMARY_CANT_HAVE_NULL |
| SQLSTATE | 42000 |
| Group | Server errors |
In other databases
Source: MySQL 8.4 Error Reference