Saving Dates in SQLServer

后端 未结 7 1363
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-05 00:16

I have a legacy application where the input is a date string, i.e.:

06/12/2009

The format of the input is always a string, and i

7条回答
  •  忘掉有多难
    2021-01-05 00:35

    Normally I prefer to insert as

    insert into tbl values('yyyyMMdd')
    

    Then, itll be inserted in proper format based on db.

提交回复
热议问题