服務(wù)熱線
153 8323 9821
今天寫了個三表連接程序,寫法如下:select a.*.b.bid,c.cid from table as a inner join table2 as b on a.t1=b.bid inner join table3 as c on a.t2=c.cid where a.id="+pid;
可總是提“FROM 子句語法錯誤”,查了半天都是出錯在關(guān)鍵字上,沒有我的著多個錯誤,后來搜索access三表連接,終于查到了需要的東西,解決如下:
在Access中能夠執(zhí)行的sql三表連接查詢語句的寫法
select * from table1,table2,table3
where table1.a = table2.b and table1.c = table3.d
至此,困擾我一個小時的問題終于解決,感謝網(wǎng)上無償共享者的同時,也放這里,讓其他有此問題的人也不要走彎路,盡快解決,節(jié)省寶貴時間