Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在SQL missing关键字中选择3行_Sql_Oracle - Fatal编程技术网

在SQL missing关键字中选择3行

在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.

我在第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.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命令行currentlyWhich
DBMS
您正在使用的是RACLE express。SQL命令行当前