View Single Post
  #6  
Old 06-07-2007, 10:58 AM
sfisque
Hill Giant
 
Join Date: Oct 2006
Posts: 248
Default

Quote:
Originally Posted by Secrets
Think this would be it...

Code:
UPDATE `npc_types` SET `npcspecialattks`='F' WHERE `level` > 35 AND level < 65
Would set the flag 'F' in the field `npcspecialattks` where the level is 36-64.
mysql supports a concat function, you might be able to use something like:

Code:
UPDATE `npc_types` 
        SET `npcspecialattks`= concat( `npcspecialattks`, 'F' ) 
        WHERE `level` > 35 AND level < 65 
        AND `npcspecialattks` not like '%F%'
Reply With Quote