我收到一个错误
column expeertID in field list is ambiguous
我不确定如何解决这个问题
INSERT INTO cv(expertID)
SELECT expertID
FROM experts
INNER JOIN cv ON experts.expertID = cv.expertID;
最佳答案
尝试下面 - 您需要添加 tablename
,因为 expertID column
存在于两个表中
INSERT INTO cv(expertID)
SELECT experts.expertID
FROM experts
INNER JOIN cv ON experts.expertID = cv.expertID;
关于mysql - 字段列表中的列 ' ' 不明确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54129132/