【发布时间】:2022-06-13 01:53:06
【问题描述】:
假设我的表 1 由列组成
(id,name,phone_number, country_name)
表2由
组成(country_code,country_name).
//表1中提到的电话号码没有国家代码
作为输出,我需要
(id, name, phone_number with country code (in a single column), and country_name).
我将如何编写相同的 SQL 代码?
【问题讨论】:
-
研究
JOIN和CONCAT()
标签: mysql sql database dbms-output