How to store NULL values in datetime fields in MySQL?

后端 未结 8 534
再見小時候
再見小時候 2020-11-29 05:44

I have a \"bill_date\" field that I want to be blank (NULL) until it\'s been billed, at which point the date will be entered.

I see that MySQL does not like NULL val

8条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 06:10

    I just tested in MySQL v5.0.6 and the datetime column accepted null without issue.

提交回复
热议问题