Mysql
 sql >> Base de données >  >> RDS >> Mysql

(+) syntaxe pour les jointures externes dans mysql

Plus simple que ça :

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 

Non.