I want to make an order by stuff using a part of some column.For example,some records of the column user look as below
vip1,vip2,vip21,vip10,vip100
If I do a order by user,the order would be
vip1,vip10,vip100,vip2,vip21
Then how can I make the result as follows
vip1,vip2,vip10,vip21,vip100
Thanks.
What RDBMS?
For SQL Server to get numeric sorting rather than lexicographic sorting it would be something like
For MySQL
but why are you storing the
vippart at all if it is the same for all rows?