在SQL missing关键字中选择3行
我在第4行得到一个缺少关键字的错误。有什么想法吗 您需要在每个表在SQL missing关键字中选择3行,sql,oracle,Sql,Oracle,我在第4行得到一个缺少关键字的错误。有什么想法吗 您需要在每个表JOIN之后添加ON条件 SELECT agents.aname,products.pname,customers.cname FROM products INNER JOIN (customers INNER JOIN agents (INNER JOIN orders ON orders.pid=products.pid) ON orders.cid=customers.cid) ON orders.aid=agents.
JOIN
之后添加ON
条件
SELECT agents.aname,products.pname,customers.cname
FROM products INNER JOIN
(customers INNER JOIN agents
(INNER JOIN orders ON orders.pid=products.pid)
ON orders.cid=customers.cid)
ON orders.aid=agents.aid;
您需要在每个表
JOIN
之后添加ON
条件
SELECT agents.aname,products.pname,customers.cname
FROM products INNER JOIN
(customers INNER JOIN agents
(INNER JOIN orders ON orders.pid=products.pid)
ON orders.cid=customers.cid)
ON orders.aid=agents.aid;
您使用的是哪个
DBMS
RACLE express。SQL命令行currentlyWhichDBMS
您正在使用的是RACLE express。SQL命令行当前