我想知道这两个查询有什么不同,哪个是最好的表现?
SELECT employee.*, company.name FROM
company,
employee
WHERE
employee.company_id = company.id AND
company.id = '365'
或
SELECT employee.*, company.name FROM
company
INNER JOIN employee ON employee.company_id = company.id
WHERE
company.id = '365'
答案 0 :(得分:2)
只是一个不同的符号。没有其他区别。