472,145 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

mysql string comparison

Hi,

I have string in a field like theses: rel-1-0, rel-2-0, rel-3-0,
rel-21-0.....

if comparing them in this way: select 'rel-3-0'>'rel-21-0';
Mysql will return "1" as true, this is false in our knowledge.
I wonder if there is a way to order such string inside mysql so that
rel-3-0 < rel-21-0?

cheers,
sheng
Jul 20 '05 #1
0 1115

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Mike Chirico | last post: by
8 posts views Thread by wlcna | last post: by
11 posts views Thread by DJJ | last post: by
reply views Thread by Saiars | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.