我正在尝试编写一个查询,该查询将显示dbtimestamp比lastupdated时间戳更新的任何项目。
select * from item where LastUpdated < DBTimeStamp
但是我收到了错误
Msg 8115,Level 16,State 2,Line 1
将表达式转换为数据类型datetime的算术溢出错误。
这是10项itemlookupcode,lastupdated和dbtimestamp
ItemLookupCode LastUpdated DBTimeStamp
---------------------------------------------------------------
QTF-5554QXDS42DDD 2014-06-16 11:11:37.483 0x0000000000093390
PD-9540-60 2014-06-15 20:48:44.960 0x00000000000007D6
FIRE-MASS- 2014-07-03 17:34:20.467 0x00000000000007D9
CD-X1201 2014-07-12 10:28:04.630 0x00000000000007DC
ID-SLT-JO 2014-07-13 12:10:36.057 0x00000000000007DF
PL-STRD701BK07 2014-07-15 10:01:00.303 0x00000000000007E2
V24914 2014-07-17 12:27:16.067 0x00000000000007E5
GIFTEXACT 2014-07-21 17:18:16.457 0x00000000000007E8
V87069 2007-06-14 14:34:56.000 0x0000000000094628
R86196-1201 2006-11-15 18:03:18.000 0x0000000000091FCF
谢谢
布赖恩