`cca` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
|cca |
|-------|
|360-530|
|360-600|
|360-530|
|360-530|
|360-530|
drop function if exists checkRange;
DELIMITER //
CREATE FUNCTION checkRange(strRange varchar, from int, to int) RETURNS bool
DETERMINISTIC
BEGIN
DECLARE left INT;
DECLARE right INT;
SELECT strRange REGEXP ... INTO left
SET result = ...;
RETURN (result);
END//
DELIMITER ;
....
SELCET * FROM table WHERE checkRange(randeColumn, 360, 530)