conversion of a varchar data type to a datetime data type resulted in an out-of-range value

后端 未结 7 2412
梦毁少年i
梦毁少年i 2020-11-27 06:33

I have the following piece of inline SQL that I run from a C# windows service:

UPDATE table_name SET 
    status_cd = \'2\', 
    sdate = CAST(\'03/28/2011 1         


        
7条回答
  •  北海茫月
    2020-11-27 07:31

    i faced this issue where i was using SQL it is different from MYSQL the solution was puting in this format: =date('m-d-y h:m:s'); rather than =date('y-m-d h:m:s');

提交回复
热议问题