SELECT * FROM `models` WHERE `name` REGEXP '^[0-9]+$';
Please note: JavaScript is required to post comments.