我想使用存储过程将一些作为参数传入的值插入到列的xml元素中。到目前为止,我有以下参数:@user_id nvarchar(50),@display_name nvarchar(50)DECLARE @profiles_xml xml
SET @profiles_xml = (SELECT profiles from tbl_applied_profiles WHERE profiles.value('(Profile/ID)[1]','int'
Set @xml.modify('replace value of (/root/StartOne/Value5/a/text())[1] with sql:variable("@locTitle")');
Set @xml.modify('replace value of (/root/StartOne/Value5/a/@title)[1] with sql:variable("@locT