书上讲得明白,解了不少迷惑。
SELECT e.fname, e.lname, d.name FROM employee AS e INNER JOIN department AS d ON e.dept_id = d.dept_id;
SELECT e.fname, e.lname, d.name FROM employee AS e INNER JOIN department AS d USING (dept_id);
时间: 2024-09-14 04:27:08
书上讲得明白,解了不少迷惑。
SELECT e.fname, e.lname, d.name FROM employee AS e INNER JOIN department AS d ON e.dept_id = d.dept_id;
SELECT e.fname, e.lname, d.name FROM employee AS e INNER JOIN department AS d USING (dept_id);