查詢id寫錯的主要這個意思?
select * from table1 a,table2 bwhere a.id = b.lid
嗯,謝謝了的確是這樣的不過應該select * from table1 a,table2 b where a.id=1 and a.id=b.lid 這樣纔算完美了