我想這樣選擇USER_NAME,vehicle_name並從3頁不同的表,其中USER_ID,vehicle_id和maintain_cost_id等於三maintain_cost,所以我用它查詢,我試試這個SQL,如何從不同的表中選擇屬性?
(select user_name,vehicle_name,maintain_cost
from user,vehicle,maintain_cost
where user_id='3')
,但不知道如何把vehicle_id =「3」和maintain_cost_id =「3」
用戶,vehicale,maintain_cost的模式是什麼? – SMA 2014-10-20 15:25:00