MySQL 错误 '1105 - Only constant XPATH queries are supported' 解决方法
将 updatexml 函数中的查询语句改为常量值,例如:
SELECT COUNT(1) FROM (
SELECT COUNT(1) FROM mi_users
WHERE id BETWEEN 1 AND 200 and updatexml(1,concat(0x7e,'version',0x7e),1)
GROUP BY network_id
) a
其中 'version' 为常量值,可以是任意字符串。
原文地址: https://www.cveoy.top/t/topic/nKTs 著作权归作者所有。请勿转载和采集!