T-SQL Query Returning Items It Shouldn't Be

前端 未结 5 896
遥遥无期
遥遥无期 2021-01-21 17:15

Here\'s the scenario. The column in question is called \'datein\' and it\'s type is \'datetime\'. I have three rows with the value of \'2009-10-01 00:00:00.000\' for \'datein\

5条回答
  •  悲哀的现实
    2021-01-21 17:31

    What is the column type? If it is a datetime, try casting the values you're comparing with to a datetime as well; if it is a string (char, nchar, varchar, nvarchar) what collation etc. are you using for the column?

提交回复
热议问题