sqlite - Distribute NOT across parenthesis in SQL query, is it possible? -


i'm building parser turn search string boolean operators , nested parenthesis in sql queries. search string "(foo bar) or (foo baz)" generates

( "cards"."name" '%foo%' , "cards"."name" '%bar%' ) or  ( "cards"."name" '%foo%' , "cards"."name" '%baz%' ) 

or , and work fine this, not doesn't work expected. i've done reading , looks modifies selectors? i'm pretty unfamiliar.

is there way prefix group of selectors, "not (foo bar)" might expand functional equivalent of:

( "cards"."name" not '%foo%' , "cards"."name" not '%bar%' ) 


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -