SyntaxFix
Write A Post
Hire A Developer
Questions
SELECT *, CAST(SUBSTRING_INDEX(field, '-', -1) AS UNSIGNED) as num FROM tableName ORDER BY num;