Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. EXPLAIN SELECT nt.deutsch_id, nt.article, n.deutsch_word, ft.french_id, ft.article, f.french_word, p.part, fd.transcription, fd.definition
  2. FROM translation_enfr ft
  3. INNER JOIN translation_ende nt ON nt.translation_id = ft.translation_id
  4. INNER JOIN deutsch n ON n.deutsch_id = nt.deutsch_id
  5. INNER JOIN french f ON f.french_id = ft.french_id
  6. INNER JOIN parts p ON p.part_id = ft.part_id
  7. LEFT JOIN french_details fd ON fd.translation_id = ft.translation_id
  8. WHERE ft.translation_id =2
  9.  
  10. public function getNativeWord($withArticle = true) {
  11. if(is_null($this->nativeWord)) {
  12. $q = "SELECT {$langLabel}_word FROM {$langLabel}
  13. WHERE {$langLabel}_id = :native_id";
  14. }
  15. }
  16.  
  17. "SELECT {$langLabel}_word FROM {$langLabel} WHERE {$langLabel}_id = :foreign_id"
  18. "SELECT article FROM translation_en{$this->nativeLang} WHERE translation_id = :translation_id";
  19. "SELECT parts.part FROM parts INNER JOIN translation ON parts.part_id = translation.part_id WHERE translation_id = :trans_id"
  20. "SELECT transcription FROM {$langLabel}_details WHERE translation_id = :trans_id";
  21. "SELECT definition FROM {$langLabel}_details WHERE translation_id = :trans_id";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement