答案 0 :(得分:4)
select manufacturer,price,imglink,cores,brand,clock_frequency
from computer
inner join computer_has_comp on computer.computer_id=computer_has_comp.computer_computer_id
inner join cpu on computer_has_comp.compid=cpu.compid
答案 1 :(得分:1)
如果我确定关系正确,这可能会有效..
SELECT computer.*, computer_has_comp.*, cpu.* FROM computer
LEFT JOIN computer_has_comp ON computer.computer_id=computer_has_comp.computer_computer_id
LEFT JOIN cpu ON computer_has_comp.compid=cpu.compid