Insert NULL value into INT column

前端 未结 6 1470
名媛妹妹
名媛妹妹 2020-12-30 20:05

How can I insert NULL value into INT column with MySQL? Is it possible?

6条回答
  •  死守一世寂寞
    2020-12-30 20:33

    If the column has the NOT NULL constraint then it won't be possible; but otherwise this is fine:

    INSERT INTO MyTable(MyIntColumn) VALUES(NULL);
    

提交回复
热议问题