【问题标题】:How to merge two table and concatenate values from 2 coloumns into single one in SQL?如何在 SQL 中合并两个表并将 2 列中的值连接到单个表中?
【发布时间】: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 代码?

【问题讨论】:

  • 研究JOINCONCAT()

标签: mysql sql database dbms-output


猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-05-06
  • 2021-11-07
  • 1970-01-01
相关资源
最近更新 更多