我可以单独运行下面的查询来查找新教师Harvey的employee_id,并将值添加到insert into函数中,但是我收到错误,说它没有正确结束。另外两个字段是硬编码的。
INSERT INTO expertise(employee_id, course_code, expertise_level)
VALUES (employee_id, CMPP201, 1)
SELECT employee_id
FROM faculty
WHERE employee_id = (SELECT employee_id
FROM faculty
WHERE firstname = 'Harvey');