List:General Discussion« Previous MessageNext Message »
From:Peter Brawley Date:March 25 2006 2:27am
Subject:Re: Comparing x.x.x.x strings
View as plain text  
 >When I compare two strings in mask (x.x.x.x) the comparation is not 
true (for my question :D)... look:
 >select '3.2.0.13' > '3.2.0.2'            -> FALSE
 >I want this command return TRUE, but it is returning FALSE.

select inet_aton('3.2.0.13') > inet_aton('3.2.0.2');
+----------------------------------------------+
| inet_aton('3.2.0.13') > inet_aton('3.2.0.2') |
+----------------------------------------------+
|                                            1 |
+----------------------------------------------+

PB
>
Thread
Comparing x.x.x.x stringsLucas Vendramin24 Mar
  • Re: Comparing x.x.x.x stringsRhino24 Mar
    • Re: Comparing x.x.x.x stringsPeter Brawley25 Mar
  • Re: Comparing x.x.x.x stringsJay Paulson24 Mar
    • Re: Comparing x.x.x.x stringsLucas Vendramin27 Mar
      • Re: Comparing x.x.x.x stringsJake Peavy27 Mar
  • Re: Comparing x.x.x.x stringsDan Nelson24 Mar