我想加入2個帶有ID的表格。我寫了下面的查詢,但我得到一個錯誤。我想在mysql中同時選擇所有列。加入查詢問題
select t1.* t2.* table1t1
JOIN table2t2
ON t1.id = t2.postads_id
where ads_id=1277719543
AND email='[email protected]';
ERROR: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't1 JOIN nextpostads t2 ON t1.id = t2.postads_id where ads_id=1277719543 AND emai' at line 1
需要哪些修改?
什麼是兩個表的表結構? – NotMe 2010-07-06 13:27:59