^念安^ 2021-09-30 16:27 采纳率: 77.8%
浏览 27
已结题

MySQL用不来full join怎么办?

查询所有顾客购买商品的信息,包括没购买商品的顾客和没被购买的顾客
mysql> select customer. * ,goods. * ,orderdate,amount

-> from customer full join orders on customer.cno=orders.cno

-> full join goods on goods.gno=orders.gno;
ERROR 1064 (42000): 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 join goods on goods.gno=orders.gno' at line 3

  • 写回答

3条回答 默认 最新

  • 神仙别闹 2021-09-30 16:35
    关注

    mysql 不支持 FULL JOIN 用left join 或 right join

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 10月23日
  • 已采纳回答 10月15日
  • 创建了问题 9月30日

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度