我有从 sql 查询返回结果的 xml 代码:
<QElement FName = "Machine_DT" DBName="DB">
declare @DT as int
set @DT =(SELECT TOP 1 [Value] FROM [DB].[dbo].[ConfigDBe] where [line] = '1' and [Name] = 'Hello')
select isnull(@DT,0)
</QElement>
我如何使用这个结果来执行计算?