Advertisement
vojtarek

EHEC

May 25th, 2011
561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.74 KB | None | 0 0
  1. SELECT * FROM documents WHERE
  2. fts @@ to_tsquery('dutch', 'blutiger & Durchfall')
  3. AND LANGUAGE='de';
  4.  
  5.  
  6. SELECT * FROM documents WHERE
  7. fts @@ to_tsquery('dutch', 'Bauchschmerzen')
  8. AND LANGUAGE='de';
  9.  
  10. SELECT * FROM documents WHERE
  11. fts @@ to_tsquery('dutch', 'Magen-Darm')
  12. AND LANGUAGE='de';
  13.  
  14.  
  15. SELECT * FROM documents WHERE
  16. fts @@ to_tsquery('dutch', 'EHEC-Darminfektionen')
  17. OR
  18. fts @@ to_tsquery('dutch', 'EHEC & Darminfektionen ')
  19. AND LANGUAGE='de';
  20.  
  21.  
  22.  
  23. SELECT * FROM documents WHERE
  24. fts @@ to_tsquery('dutch', 'hämolytisch-urämische')
  25. AND LANGUAGE='de';
  26.  
  27.  
  28. -- HUS
  29. SELECT documents.id, text
  30. FROM documents, instances
  31. WHERE documents.id=instances.item_id
  32. AND entity_id=200987 -- = HUS entity
  33. ORDER BY TIMESTAMP DESC
  34. LIMIT 100;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement