我需要help爲腳本如何在一個使用SQL加入3列。我想要在結果窗口中加入列address_1
,address_2
和address_3
。如何在SQL Server Management Studio中連接3列?
-6
A
回答
1
0
SELECT
cust_code,
cust_name,
address_1 + address_2 + address_3 AS full_address,
address_4,
telephone
FROM
a_customer
ORDER BY
cust_name ASC
請參閱string concatenation的文檔。
+0
謝謝你。你救了我。 – Nico
0
看來你是如下尋找毗連運算。
SELECT CUST_CODE, CUST_NAME, ADDRESS_1 + address_2 + address_3 + address_4, 電話 FROM a_customer ORDER BY CUST_NAME ASC
相關問題
- 1. 在SQL Server Management Studio Express中連接到SQL Server 2005數據庫
- 2. 無法連接到SQL Server Management Studio
- 3. SQL在SQL Server Management Studio中
- 4. 如何連接到SQL Server Management Studio中的UCP 17.1
- 5. SQL Server Management Studio
- 6. 使用Sql Server Management Studio通過Internet連接到ISP的SQL Server
- 7. SQL Server Management Studio將無法連接到SQL Server
- 8. 如何通過SQL Server Management Studio連接到外部數據庫?
- 9. sql server management studio 2008
- 10. 2005 SQL Server Management Studio
- 11. SQL Server Management Studio ZEROFILL
- 12. 在SQL Server Management解析列的Data Studio
- 13. 的SQL Server 2014 Management Studio中
- 14. 的SQL Server 2014 Management Studio中
- 15. 通過Management Studio連接到SQL Azure
- 16. 使用SQL Management Studio連接到Linux上的SQL Server(docker)
- 17. 如何在SQL Server Management Studio的表中隱藏特定的列?
- 18. SQL Server 2012 Management Studio連接存儲在哪裏?
- 19. SQL Server 2008中的連接問題Management Studio Express
- 20. 如何在SQL Server Compact Edition中使用SQL Server Management Studio創建列(2008)
- 21. 在Visual Studio或Sql Server Management Studio中連接到Web主機上的數據庫
- 22. 如何更改SQL Server Management Studio結果
- 23. 如何訪問SQL Server不使用SQL Server Management Studio中
- 24. 如何更改Microsoft SQL Server Management Studio中當前選項卡的連接
- 25. 在SQL Server Management Studio中創建表格
- 26. 在SQL Server Management Studio中創建外鍵
- 27. 無法生成腳本在SQL Server Management Studio中3次2008
- 28. 如何在SQL Server Management Studio中管理SQL CE數據庫?
- 29. 如何在SQL Server Management Studio中管理SQL CE數據庫?
- 30. SQL Server Management Studio問題
加入他們在結果窗口?那是什麼意思?你希望他們顯示爲1列? – Veljko89
你到目前爲止嘗試過什麼?請出示你的! –
是的,我希望他們在一列中顯示。這是我目前的腳本。通過cust_name asc從a_customer order中選擇cust_code,cust_name,address_1,address_2,address_3,address_4,telephone 我想加入1列address_1,address_2,address_3,address_4 – Nico