SQL语法错误:多个联接错误

时间:2019-01-15 04:40:01

标签: mysql sql

我使用了多个联接表。但是我有一个错误。我听不懂这是我的代码。

`SELECT cities.cities, address.village, address.phone

FROM tbl_join INSERT JOIN cities ON tbl_join.id = cities.id INSERT JOIN address ON tbl_join.id = address.id`

并显示此错误

`Error

SQL query: Documentation

SELECT cities.cities, address.village, address.phone

FROM tbl_join
INSERT JOIN cities ON tbl_join.id = cities.id
INSERT JOIN address ON tbl_join.id = address.id LIMIT 0, 25

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INSERT JOIN cities ON tbl_join.id = cities.id
INSERT JOIN address ON tbl_join.i' at line 4`

1 个答案:

答案 0 :(得分:1)

它的INNER JOIN不是INSERT JOIN