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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -