Mysql
 sql >> Database >  >> RDS >> Mysql

(+) sintassi per i join esterni in mysql

Più semplice di così:

select a.country acountry,
        a.stateProvince aStateProvince,
        b.countryName bcountry,
        b.name bstateProvince
  from User a
        left join
          stateprovince b
    on  a.country = b.countryName 
          and a.stateProvince = b.name 

No.