数据库sql语法,这个sql代码有什么问题

时间:2017-10-13 13:13:53

标签: sql mariadb

SELECT customer.first_name,
       customer.last_name,
       orders.order_number
FROM customer
     FULL OUTER JOIN orders ON customer.id = orders.customerid
ORDER BY customer.last_name;

1 个答案:

答案 0 :(得分:-1)

从客户处选择customer.first_name,customer.last_name,orders.order_number customer.id = orders.customerid ORDER by customer.last_name;

的完整外连接订单

此查询没有错,只需检查您的列名称