Escaping (, round brackets sybase SQL -
i working sybase sql , want exclude entries this:
(not present)
so tried using:
select col table col not '(%)'
do guys know happening? think need escap ( somehow, not know how. following returns error:
select col table col not '\(%\)' escape '\'
kind regards
you might find helpful
sybase event stream processor 5.0 ccl programmers guide - string functions
like()
scalar. determines whether given string matches specified pattern string.
syntax
like ( string, pattern )
parameters
string
string.
pattern
pattern of characters, string. can contain wildcards.usage
determines whether string matches pattern string. function returns 1 if string matches pattern, , 0 otherwise. pattern argument can contain wildcards: '_' matches single arbitrary character, , '%' matches 0 or more arbitrary characters. function takes in 2 strings arguments, , returns integer.
note: in sql, infix notation can used: sourcestring patternstring.
example
like ('msft', 'm%t')
returns 1.
Comments
Post a Comment