【发布时间】:2020-04-13 14:36:07
【问题描述】:
你能告诉我如何解决这个问题吗? 我有 3 个数据库表。
- 网络。
- 产品。
- cmets.
在我添加“cmets”表之前查询看起来像这样(按预期工作):
SELECT networks.*, products.product, products.type
FROM products
JOIN networks ON products.id=networks.product_Id
现在我尝试使用附加表对其进行修改,但它不起作用:
SELECT
networks.*,
products.product,
products.type,
comments.id AS comment_Id,
comments.newLine,
comments.lineComment AS comment,
comments.topComment,
comments.bottomComment
JOIN networks ON products.id=networks.product_Id,
ON comments.id=networks.comment_Id
如何解决这个问题?
感谢帮助:)
【问题讨论】:
-
什么不起作用?你忽略了解释。你也没有解释你想要什么。
标签: mysql sql join select multiple-tables