View Single Post
  #3  
Old 05-25-2009, 10:25 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

You can also use bitwise AND (&):

Code:
SELECT * FROM items WHERE races & '512' AND classes & '512'
This would select all items that can be used by an Ogre Shaman, not just items that can only be used by an Ogre Shaman.

Hope this helps.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote