The goal is to search the database of users by their settings column, append a notification column and grab an email from an email column depending on the settings column. Problem is that the settings column is consisted of 10 hexadecimal chars (which means that one char is four 0 or 1 settings, which is total of 40 binary settings).
This is the lite example of the database:
Expand|Select|Wrap|Line Numbers
- id | settings | email | notify
- 0 | 82b3ff4ab4 | test@email.com | link,
- 1 | 61baf32d7c | info@email.com | null
I've also had in mind to use SELECT in combination with WHERE and LIKE with wildcards and with the update query to append the notify column, but the problem is in the settings column.
Does anyone have ideas what's the best way to do that?
My hosting service block my page because too many queries caused the processor overloading, so I'm a bit scared of these things right now.