MySQL query with DISTINCT keyword

后端 未结 5 865
醉酒成梦
醉酒成梦 2021-01-24 05:23

My MySQL table country_phone_codes looks something like this

id     country_code     area_code     name
---------------------------------------------------------         


        
5条回答
  •  醉酒成梦
    2021-01-24 05:46

    To select distinct country_code, name pairs:

    select country_code, name
    from country_phone_codes
    where country_code = area_code;
    

提交回复
热议问题