假设我有一张Name_Address
如下表:
CREATE TABLE [dbo].[Name_Address](
[First_Name] [nvarchar] (50) NULL,
[Last_Name] [nvarchar] (50) NULL,
[Address] [nvarchar] (50) NULL,
[City] [nvarchar] (50) NULL,
[State] [nvarchar] (50) NULL,
[Zip] [nvarchar] (50) NULL,
[Phone] [nvarchar] (50) NULL,
[Cell] [nvarchar] (50) NULL
) ON [PRIMARY]
SQL中有没有一种方法可以构建一个字符串:
<First Name>John<Last Name>Smith<Address>1233 Your Street<City>Home Town<State>NY<Zip>123456-1234<Phone>111-111-1111<Cell>222-222-222
并将其插入另一个表?
原始帖子未将 xml 标签显示为所需结果的一部分:没有代码格式化,标签被逐字解释并且不显示。