T-SQL Between Dates Confusion

后端 未结 5 487
一生所求
一生所求 2020-12-03 18:22

I am working with T-SQL in SQL Server 2000 and I have a table TRANSACTIONS which has a date column TRANDATE defined as DateTime, among many other c

5条回答
  •  鱼传尺愫
    2020-12-03 19:19

    What would be your expected result if I would do this

    Insert "12/31/2010" into your datetime column?
    

    Exactly: 12-31-2010 00:00:00

    So why would you expect it to be different as argument for a query?

提交回复
热议问题