我的查询如下:
SELECT collection_content_mappings.tbl_content_common_id
FROM collection_content_mappings Inner Join tbl_content_commons ON collection_content_mappings.tbl_content_common_id = tbl_content_commons.id
INNER JOIN tbl_content_additionals ON collection_content_mappings.tbl_content_common_id = tbl_content_additionals.content_content_code
WHERE collection_content_mappings.collection_id = 1
这部分是问题:
collection_content_mappings.tbl_content_common_id = tbl_content_additionals.content_content_code
字段“collection_content_mappings.tbl_content_common_id”不是需要等同的字段;相反,我必须采取tbl_content_commons.content_common_code from tbl_content_commons where collection_content_mappings.tbl_content_common_id = tbl_content_commons.id
. 如何将此添加到上面的查询中?
任何帮助表示赞赏