Create boolean column in MySQL with false as default value?

后端 未结 4 968
醉梦人生
醉梦人生 2021-01-30 04:32

I want to create a table in MySQL with a boolean column whose default value is false. But it\'s accepting NULL as default...

4条回答
  •  再見小時候
    2021-01-30 05:13

    If you are making the boolean column as not null then the default 'default' value is false; you don't have to explicitly specify it.

提交回复
热议问题