I have users table and want to SELECT some rows by bitmask criteria. I\'ll try to explain my problem with small example.
Structure of table users
[...] want to SELECT some fields
Wrong. You want to select some Rows. Columns are usually called fields.
You are supposed to read the Documentation: Bit Functions are documented for mysql.
So you can try:
Select * from users WHERE (user_privileges & 1) >0
SELECT
*
FROM
users
WHERE
(user_privileges & <level>) = <level>
<level>
being the access level you want to search on (e.g. 1, 5, 9, 130, etc.)