If you are only using ANSI-92 Query Mode for the alternative wildcard characters (rather than the enhanced SQL DDL and DCL SQL syntax it offers) then consider using the ALIKE
keyword in place of the LIKE
keyword.
The advantage is that you can use the ANSI-92 Query Mode wildcard characters in either Query Mode. The slight disadvantage is that the ALIKE
is officially unsupported, meaning it might disappear in a future release of the engine (though I would rate this as low risk myself).
onedaywhen
2009-11-02 13:07:15