以下是代码:
-- 这段SQL是用来查满属性的物品
use muonline
--下面这一段是查仓库里面的物品
select * from warehouse
where (charindex(0xbf,items)%10=8) or (charindex(0xff,items)%10=8)
or (charindex(0x7f,items)%10=8) or (charindex(0x3f,items)%10=8)
--下面这一段是查身上和包裹里面的物品
select * from character
where (charindex(0xbf,inventory)%10=8) or (charindex(0xff,inventory)%10=8)
or (charindex(0x7f,inventory)%10=8) or (charindex(0x3f,inventory)%10=8)
以下是代码:
use muonline
--下面这一段是清空有全属性物品的仓库
update warehouse set items = null
where (charindex(0xbf,items)%10=8) or (charindex(0xff,items)%10=8)
or (charindex(0x7f,items)%10=8) or (charindex(0x3f,items)%10=8)
--下面这一段是清空有全属性物品的包裹
update character set inventory = null
where (charindex(0xbf,inventory)%10=8) or (charindex(0xff,inventory)%10=8)
or (charindex(0x7f,inventory)%10=8) or (charindex(0x3f,inventory)%10=8)
以下是代码:
--下面是查仓库
select * from warehouse
where charindex(0xA85C79000000007F4166,items) >0
--下面是查包裹
select * from character
where charindex(0xA85C79000000007F4166,inventory) >0