[thelist] SQL Query

rudy rudy937 at rogers.com
Tue Aug 19 17:57:14 CDT 2003


>>>>   SELECT * from mytable WHERE myfield LIKE "%.%.%"
>>>>     AND NOT myfield LIKE "%.%.%.%"
>
>
> A.B.C.D matches both conditions and therefore would not be selected.  
> A.B.C only matches the first condition and therefore would be selected.

you're absolutely right, tab

and i am an idiot ® ™ ©


<tip type="sql">
when in doubt, test
</tip>


rudy


More information about the thelist mailing list