select a.Postcode,b.Adres
from Colliers_DataAnalytics.conversie_PC_BU_GM_COROP a
left join Colliers_DataAnalytics.Coordinaten_Adres b
on (b.Adres like concat(a.Postcode, '%'));
此语句运行良好,但是当我在末尾添加where语句时,它将不起作用。有人帮我。
select a.Postcode,b.Adres
from Colliers_DataAnalytics.conversie_PC_BU_GM_COROP a
left join Colliers_DataAnalytics.Coordinaten_Adres b
on (b.Adres like concat(a.Postcode, '%'))
where a.Postcode = '4706KG';
但是如果我用其他列代替邮政编码,那么它就可以工作。