mysql> SELECT a.tutorial_id, a.tutorial_author, b.tutorial_count -> FROM tutorials_tbl a, tcount_tbl b -> WHERE a.tutorial_author = b.tutorial_author; +-------------+-----------------+----------------+ | tutorial_id | tutorial_author | tutorial_count | +-------------+-----------------+----------------+ | 1 | John Poul | 1 | | 3 | Sanjay | 1 | +-------------+-----------------+----------------+ 2 rows in set (0.01 sec) mysql>
這是MySQL連接查詢教程http://www.tutorialspoint.com/mysql/mysql-using-joins.htm。但我需要加入許多表格。在那種情況下.. WHERE
聲明如何看起來像?請幫助...多個連接表在MySQL
不要在where子句中使用舊的過期隱式連接。使用顯式的'JOIN'運算符。如果該教程提倡超過20年的聯合風格,那麼可能需要找到一個不同的教程。 –