Column cannot be null Mysql

前端 未结 8 1751
广开言路
广开言路 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:39

    You have defined the not null value to 'physician_minc':

    `physician_minc` varchar(20) NOT NULL,
    

    How can you pass the null value to it.First you need to make the physician_minc column as null then only you can pass your desired null value.

    `physician_minc` varchar(20) NULL,
    

提交回复
热议问题