Discuss / SQL / 廖大 mysql不支持全外连接吧

廖大 mysql不支持全外连接吧

Topic source

田瑞泽2

#1 Created at ... [Delete] [Delete and Lock User]

SELECT s.id, s.name, s.class_id, c.name class_name, s.gender, s.score FROM students s FULL OUTER JOIN classes c ON s.class_id = c.id;

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FULL OUTER JOIN classes c ON s.class_id = c.id' at line 49 时间: 0.001s

MySQL不支持全外连接,所以只能采取关键字UNION来联合左、右连接的方法 “这是其他地方看到的..”

廖雪峰

#2 Created at ... [Delete] [Delete and Lock User]

我没说mysql支持啊

醉后诀

#3 Created at ... [Delete] [Delete and Lock User]

..


  • 1

Reply