Link to home
Start Free TrialLog in
Avatar of smetterd
smetterdFlag for United States of America

asked on

MySQL select * from users where "the nth character of the string within permissions field is 1"

I have a field called perms in the db that has twenty characters. Each character represents a permission.

How can I write a MySQL query that gives me something like:

MySQL select * from users where "the nth character of the string within permissions field is 1"
Avatar of smetterd
smetterd
Flag of United States of America image

ASKER

In the future I promise I will put each permission is a separate field... so please don't advise me to do that right now... I can't!
;-)
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial