CREATE TABLE IF NOT EXISTS `test_b`
(
`id` int(10) unsigned NOT NULL,
`services` varchar(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `test_a`
(
`id` int(10) unsigned NOT NULL,
`services` bigint(20) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
`services` & (4 ^ service * status) > 0
(4 ^ `service` * `status`) <- на стороне php.