Advertisement
mixster

mixster

Jun 22nd, 2010
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. SELECT newword.word FROM
  2. words newword, [words wpreN,]
  3. sentences newsent [,sentences spreN]
  4. WHERE
  5. [wpreN.word=%s AND]
  6. [spreN.wid=wpreN.id AND
  7. spre(N-1).id=spreN.pid AND]
  8. newsent.pid=spreN.id
  9. AND newword.id=newsent.wid
  10. ORDER BY RAND()
  11. LIMIT 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement