Column cannot be null Mysql

前端 未结 8 1753
广开言路
广开言路 2020-12-21 05:12

Below is my table structure

CREATE TABLE IF NOT EXISTS `physicians` (
  `physician_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
         


        
8条回答
  •  时光取名叫无心
    2020-12-21 05:44

    The last values of your insertion are NULL yet declared as not null in the table creation, hence the error. If physician_minc is not mandatory then allow it to be NULL in the table creation by replacing physician_minc varchar(20) NOT NULL, into physician_minc varchar(20) NULL,

提交回复
热议问题