postgresql "JOIN" 处或附近的语法错误
syntax error at or near "JOIN" for postgresql
我正在尝试连接两个表,但出于某种原因,我不断收到:
ERROR: syntax error at or near "JOIN"
我的代码是:
SELECT
c.visit,
d.cake
FROM
customer c,
INNER JOIN desert d
ON c.visit = d.visit
LIMIT 10;
不需要逗号:
SELECT
c.visit,
d.cake
FROM
customer c -- here
INNER JOIN desert d
ON c.visit = d.visit
LIMIT 10;
我正在尝试连接两个表,但出于某种原因,我不断收到:
ERROR: syntax error at or near "JOIN"
我的代码是:
SELECT
c.visit,
d.cake
FROM
customer c,
INNER JOIN desert d
ON c.visit = d.visit
LIMIT 10;
不需要逗号:
SELECT
c.visit,
d.cake
FROM
customer c -- here
INNER JOIN desert d
ON c.visit = d.visit
LIMIT 10;