Say I have a table called "xml" that stores XML files in a single column "data". How would I write a MySQL query that run an XPath and return only rows matching that XPath?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- php PDO::FETCH_ASSOC doesnt detect select after ba
- sqlyog export query result as csv
I just got the answer from a colleague, it seems trimming the xml often helps:
You should note, however, that there are limitations to MySQL's support of XPath.
EXTRACTVALUE()
returns only CDATA.