Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将地址字段合并为 1。
地址)100 noway ln
市)东贾布利普
状态)否
合并为:地址)100 noway ln, eastjablip, no
同时保持城市和州完好无损。(需要搜索选项)
谢谢
使用concat_ws(“用分隔符连接”)
concat_ws
SELECT CONCAT_WS(', ', address, city, state) ....