หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Applies to:
Databricks SQL
Databricks Runtime
Returns a DOUBLE value from an XML document.
Syntax
xpath_double(xml, xpath)
Arguments
xml: ASTRINGexpression of XML.xpath: ASTRINGexpression that is a well formed XPath.
Returns
A DOUBLE.
The result is zero if no match is found, or NaN if a match is found but the value is non-numeric.
The function raises an error if xml or xpath are malformed.
Examples
> SELECT xpath_double('<a><b>1</b><b>2</b></a>', 'sum(a/b)');
3.0