【发布时间】:2011-11-19 15:18:02
【问题描述】:
SELECT type_files.html_embed_before
, script_files.path
, type_files.html_embed_after
FROM type_files
INNER JOIN script_files ON (type_files.type = script_files.type)
上面的代码为我提供了所有 script_files 的信息。 我想在查询的基础上得到
script_files.id = script_match.file_id
script_matches.ap_id 等于 article.head、header.head 或 footer.head。
将传入文章、页眉、页脚的ID
【问题讨论】:
-
[关闭] 很难说出这里问的是什么。这个问题是模棱两可、含糊不清、不完整、过于宽泛或修辞的,无法以目前的形式得到合理的回答。
-
@MichaelDurrant 我同意这有点含糊/难以理解,但我对这个问题抱有希望。该图(希望)帮助我破译它。
标签: mysql sql join inner-join