in reply to wild cards in Vertica
It looks like you have a space between $clnm and the %. In SQL "A %" will match A <space> anything. I think from you description you want "A%". Try
if ($clnm ne "") { $Where = $Where . qq(AND m.CLNAME LIKE '$clnm).qq(% + OR m.CLNAME IN ('$clnm') ); }.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: wild cards in Vertica
by pragov (Novice) on Jul 13, 2015 at 13:28 UTC |