469,167 Members | 1,238 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,167 developers. It's quick & easy.

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 1060

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
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.