我有 3 个相互关联的表。我离开了他们的身份文件。但是提交的最后一个连接表返回 null。
SELECT
ila.ilac_adi AS ilacADI,
ila.firma AS ilacFIRMA,
piy.pk_ay AS ilacAY,
kur.kurum_adi AS ilacIL
FROM piyasa_kontrol piy
LEFT JOIN ilaclar ila
ON piy.ilac_id = ila.eski_sistem_id_nolari
LEFT JOIN kurum_adlari kur
ON kur.id = piy.pk_il
ilacIL
( kur.kurum_adi
) 字段返回 null
我试过GROUP BY piy.id,
了,只有 1 行,ilacIL
仍然为空。
我在哪里错过了什么?