Conversion failed when converting date and/or time from character string while inserting datetime

后端 未结 15 1598
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 09:34

I was trying to create a table as follows,

create table table1(date1 datetime,date2 datetime);

First I tried inserting values as below,

15条回答
  •  忘掉有多难
    2020-11-22 10:03

    Just update the date format as like bellow

    yyyy-MM-dd hh:MM:ss
    

    It solves the problem for me and it works fine

提交回复
热议问题