书上讲得明白,解了不少迷惑。
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);
2023-02-18 07:55:31
书上讲得明白,解了不少迷惑。
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);