Integrity constraint violation: 1048 Column 'name' cannot be null error

前端 未结 3 1439
借酒劲吻你
借酒劲吻你 2021-01-14 22:05

there were a lot of answers related to this, but I couldn\'t find useful information. I\'m trying to connect to the database and insert user\'s entered values into it, but I

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-14 22:30

    The error seems quite clear. You have a column in the table that cannot take on a NULL value.

    I would speculate that it is not one of the column where you are explicitly providing a value (name, surname, employment_date). You need to look at the definition of the table and look for another column defined as NOT NULL (or perhaps PRIMARY KEY with no default value).

提交回复
热议问题