在联表查询时,报错如下:
> 1267 - Illegal mix of collations (utf8mb4_german2_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation '='
排查得知A表为utf8m64_general_ci,B表为utf8mb4_german2_ci,将原查询语句a.station_id=b.station_id修改为d.station_id COLLATE utf8mb4_general_ci=s.station_id COLLATE utf8mb4_general_ciab,就可以正常查询了,如下图