หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Applies to:
Databricks SQL
Databricks Runtime
Returns true if the xpath expression evaluates to true, or if a matching node in xml is found.
Syntax
xpath_boolean(xml, xpath)
Arguments
xml: A STRING expression of XML.xpath: A STRING expression that is a well formed XPath.
Returns
An BOOLEAN.
The function raises an error if xml or xpath are malformed.
Examples
> SELECT xpath_boolean('<a><b>1</b></a>','a/b');
true