Blocking '0000-00-00' from MySQL Date Fields

前端 未结 7 1266
猫巷女王i
猫巷女王i 2020-12-10 05:35

I have a database where old code likes to insert \'0000-00-00\' in Date and DateTime columns instead of a real date. So I have the following two questions:

  1. Is
相关标签:
7条回答
  • 2020-12-10 06:03

    A trigger can be used to enforce values for columns.

    0 讨论(0)
提交回复
热议问题