sql - How to order by a part of a column? -


I want to create a order stuff using a portion of a few columns. For example, some column records users are given below

  vip2, vip21, vip10, vip100  

if I will be the order by user , the command will be

  vip1, vip10, vip100, vip2, vip21  

so how can i get the results

  vip1, vip2, vip10, vip21, vip100  

thanks

  "post-text" itemprop = "text"> 

What is RDBMS?

To get numerical sorting instead of sorting glossary for SQL Server

  by order (right (Colonel, LAN (cola) -3) Code>  

for MySQL

  order by cast (right (colonel, lens (color) -3) AS Uncensored)  

But if you are similar to all the rows, then why are you archiving the vip section?


Comments