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.
我有一个视图,其中填充了来自 4 个视图的数据。现在在组合视图中,我从每个视图中获得四个 ID 列,它们的值不相似。我需要将它们全部放在一个字段中(比如 ID_NEW)。我可以通过填充继续吗?请帮帮我。
使用以下代码
SELECT CONVERT(NVARCHAR,ID_1)+' '+CONVERT(NVARCHAR,ID_2)+' '+CONVERT(NVARCHAR,ID_3)+' '+CONVERT(NVARCHAR,ID_4) AS ID_NEW from CombinedView