Insert NULL value into INT column

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

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

6条回答
  •  执笔经年
    2020-12-30 20:26

    2 ways to do it

    insert tbl (other, col1, intcol) values ('abc', 123, NULL)

    or just omit it from the column list

    insert tbl (other, col1) values ('abc', 123)

提交回复
热议问题