Gunakan REGEXP operator alih-alih LIKE operator
Coba ini:
SELECT '129387 store' REGEXP '^[0-9]* store$';
SELECT * FROM shop WHERE `name` REGEXP '^[0-9]+ store$';
Periksa SQL FIDDLE DEMO
KELUARAN
| NAME |
|--------------|
| 129387 store |