Hi,
select a from versions order by substring_index(a,'.',-2);

Best Regards
--------------------
Mathias FATENE
 
Hope that helps
*This not an official mysql support answer
 


-----Original Message-----
From: Stano Paska [mailto:[EMAIL PROTECTED] 
Sent: vendredi 29 avril 2005 08:21
To: mysql@lists.mysql.com
Subject: order by "version number"


Hi,

in my table I have one varchar(20) column where I store version number.
Version looks like: 1.1.2 1.2.1 1.10.3 It is possible order this column
in natural order (1.2 before 1.10)?

Stano.

-- 
Stanislav Paška
programátor, www skupina
KIOS s.r.o.
tel: 033 / 794 00 18



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to