您的当前位置:首页正文

SQLSERVER2008根据timestamp类型更新,返回影响行为0的问题

2020-11-09 来源:汇智旅游网

eg: 1、UPDATE [hz2].[dbo].[book] SET [NAME]='TEST' where [version] = CAST('0x0000000000000FA2' as binary(8)) 2、UPDATE [hz2].[dbo].[book] SET [NAME]='TEST' where [version] = CAST('0x0000000000000FA2' as timestamp) ps: 0x0000000000000FA2这

eg:

1、UPDATE [hz2].[dbo].[book] SET [NAME]='TEST' where [version] = CAST('0x0000000000000FA2' as binary(8))
2、UPDATE [hz2].[dbo].[book] SET [NAME]='TEST' where [version] = CAST('0x0000000000000FA2' as timestamp)

ps: 0x0000000000000FA2这条记录在数据库是存在的。急啊。 求解。

显示全文