Bạn có thể sử dụng SUBSTR và CAST AS UNSIGNED / SIGNED trong ORDER BY:
SELECT * FROM table_name ORDER BY
SUBSTR(col_name FROM 1 FOR 1),
CAST(SUBSTR(col_name FROM 2) AS UNSIGNED)
Bạn có thể sử dụng SUBSTR và CAST AS UNSIGNED / SIGNED trong ORDER BY:
SELECT * FROM table_name ORDER BY
SUBSTR(col_name FROM 1 FOR 1),
CAST(SUBSTR(col_name FROM 2) AS UNSIGNED)