how that happen SP sql server

前端 未结 5 715
长情又很酷
长情又很酷 2021-01-28 04:29

I get something weird. i ran this sql:

SELECT   Id , GameTypeId , PlayerId , BetAmount , Profit ,
         DateAndTime
FROM     Results
WHERE    DateAndTime >         


        
5条回答
  •  南方客
    南方客 (楼主)
    2021-01-28 05:11

    In addition to Martin's answer...

    Results.DateAndTime should be datetime2(7) too as per the variables. if not, you most likely have a datatype precedence issue

提交回复
热议问题