sql - How to say a variable doesn't contain a string in an Oracle DB -
i new database. trying variable doesn't contain string. right have "and c.short_name != 'bic' " +
checks see if not equal (obviously). there sql command searches result string , returns true
or false
?
sorry naiev-ness of question, i'm still learning database in general. thanks.
you want use like
, %
wildcard. examples are:
and nvl(c.short_name,'n/a') not '%bic%' -- short_name not contain 'bic' , nvl(c.short_name,'n/a') not 'bic%' -- short_name not begin 'bic' , nvl(c.short_name,'n/a') not '%bic' -- short_name not end 'bic'
Comments
Post a Comment