In a SQL table there is a client_num
column declared as char(5)
. When I sort the table by client_num
with ASC
it will have the typical ASCII sort.
1
10
100
11
110
How to sort client_num
as an INT
while keeping the column still a type of char(5)
?
EDIT
The above mentioned SQL order string as number
has quite extensively answers. This question is simple and has straight answers. Though it is a duplicate. But it helps me very quickly.