select @xml.value('sum(/Parent[@ID = "p"]/Child)', 'float') as Sum
采用
float
Parent
ID
int
上一篇 通过SQL语句手动插入到表中,但密钥会自动递增
下一篇 如何将一行扩展为多行结果集?
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号