Hãy thử:
select *
From tbl
order by cast(Left(Col, PatIndex('%[^0-9]%', Col)) as int)
Đối với MySql, hãy thử:
select *
From tbl
order by convert(SUBSTRING_INDEX(Col, ' ', 1), UNSIGNED INTEGER)
Hãy thử:
select *
From tbl
order by cast(Left(Col, PatIndex('%[^0-9]%', Col)) as int)
Đối với MySql, hãy thử:
select *
From tbl
order by convert(SUBSTRING_INDEX(Col, ' ', 1), UNSIGNED INTEGER)