22,294
社区成员
发帖
与我相关
我的任务
分享 set @val = @resumexml.value('(//Field[@id=1586]/MCAnsID)[1]','nvarchar(max)');
set @val = @resumexml.value('(//Field[@id='+@FieldID+']/MCAnsID)[1]','nvarchar(max)');
---------------------------------------------------------------------------------------
Declare @FieldID int
select top 1 @FieldID=FieldID from DM_CustField with(nolock) where AccountId=@AccountID and FieldName='Download Exam Result'
Declare @xmlString nvarchar(200)
set @val = @resumexml.value(@xmlString ,'nvarchar(max)');
-----以上两种方法均不行.