答案 0 :(得分:1)
Select FirstName, DepartmentName from Employees e inner join Department d on e.DepartmentId = e.DepartmentId
这就是我们在SQL服务器端的做法。
我刚刚阅读了MariaDB
的文档,发现它们具有完全相同的连接语法。 Given example in their docs:
SELECT * FROM t1 INNER JOIN t2 ON t1.a = t2.b;