我有一个名为phone的表,其中包含3列
======================
| TEL1 | TEL2 | TEL3 |
=======================
| 123 | 455 | 3434 |
=======================
| | 455 | 3434 |
=======================
| 675 | | |
=======================
| 123 | | |
=======================
| 123 | 455 | 3434 |
我想使用mysql查询将这些列连接到一列1,结果如下表
+---------------------+
| Telephone |
+---------------------+
| 123/455/3435 |
+---------------------+
| 455/3435 |
+---------------------+
| 675 |
+---------------------+
| 123 |
+---------------------+
| 123/455/3435 |
+---------------------+
下面的结果不是我使用CONCAT_WS('/',TEL1
,TEL2
,TEL3
)函数
+---------------------+
| Telephone |
+---------------------+
| 123/455/3435 |
+---------------------+
| 455/3435 |
+---------------------+
| 675// |
+---------------------+
| 123// |
+---------------------+
| 123/455/3435 |
+---------------------+
请帮我写一下上述结果的查询