当连接两个表(客户和订单表关系)时,Navicat MySQL 查询列为空。

问题描述 投票:1回答:1

Query

如图所示,自定义创建的列 "customer "是空的,但是当我使用 RIGHT JOIN 显示出来,但是idOrder是空的......

mysql left-join navicat table-relationships
1个回答
0
投票

检查你的customer表中是否有空值,如果字符串中有任何空值,concat的结果也会是null。

© www.soinside.com 2019 - 2024. All rights reserved.