Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 25th, 2012  |  syntax: None  |  size: 0.28 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Doing a SQLite MATCH using only negated terms
  2. SELECT * FROM fruit WHERE fruit MATCH '-apple'
  3.        
  4. SELECT * FROM fruit WHERE fruit MATCH 'pear -apple'
  5.        
  6. select * from fruit where fruit NOT match 'apple'
  7.        
  8. select * from fruit except select * from fruit where fruit match 'apple';