0

我想F20300000000在这个字符串中找到:


0xE90300000000EA0300000000EB0300000000EC0300000000ED0300000000EE0300000000EF0300000000F00300000000F10300000000F20300000000F30300000000F40300000000F60300000000F70300000000E90B00000000010C000000000D0C000000003E0C000000005E0C000000005F0C00000000630C00000000811B000000008B1B00000000951B000000009F1B00000000A91B00000000B31B00000000BD1B00000000C71B00000000

我已经使用了通配符

LIKE '%F20300000000%' 然后我没有得到任何结果。

说清楚,当我的条件为真时,它将显示F20300000000在他们的领域中拥有的人的姓名,所以我现在的问题是我似乎不知道如何F20300000000从给定的值中找到。

我的查询:

select C.Name
FROM
[SERVER01].[dbo].[character_table] AS C,
[SERVER01].[dbo].[achievement] AS T
WHERE C.CharacterIdx = T.CharacterIdx and T.AchievementData LIKE '%F20300000000%';

成就数据数据类型是 varbinary(4800)

4

1 回答 1

1

您的列可能是二进制的,因此您应该将其转换为字符串:

select C.Name
FROM
[SERVER01].[dbo].[character_table] AS C,
[SERVER01].[dbo].[achievement] AS T
WHERE C.CharacterIdx = T.CharacterIdx and CONVERT(varchar(max), T.AchievementData, 2) LIKE '%F20300000000%';
于 2013-10-13T09:16:48.667 回答