Given a @flag
value that you want to find for a certain column, for example value 2
from the npcflag
column of the creature_template
table , try the following:
SET @flag = 2;
SELECT `entry`, `name`, `npcflag`
FROM `creature_template`
WHERE `npcflag` & @flag = @flag;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…