/*Устанавливает флаг ведомого у ведомых УОО (на всякий случай)*/ update DEVICE_LIST set DEVICE_MODE = DEVICE_MODE + 128 WHERE CONTROL_DEVICE is not null and code_type_device in ( select code_type_device from type_device where model_id > 20 and model_id <100 ) and (bin_and(DEVICE_MODE, 128) = 0);