Error while inserting date - Incorrect date value:

前端 未结 7 1767
花落未央
花落未央 2020-12-09 08:31

I have a column called today and the type is DATE.

When I try to add the date in the format \'07-25-2012\' I get the following

7条回答
  •  生来不讨喜
    2020-12-09 09:09

    You can use "DATE" as a data type while you are creating the table. In this way, you can avoid the above error. Eg:

    CREATE TABLE Employee (birth_date DATE);
    INSERT INTO Employee VALUES('1967-11-17');
    

提交回复
热议问题