<?xml version="1.0" encoding="UTF-8"?>
<jobs>
<job>
<location>Raleigh, NC, US</location>
<title>Implementation Consultant II</title>
<city>Raleigh</city>
<job_type/>
</job>
<job>
<location>Saint Louis, MO, US</location>
<title>Food Service Worker I</title>
<city>Raleigh</city>
<job_type> Permanent </job_type>
</job>
</jobs>
这里我无法使用 LOAD DATA LOCAL INFILE 将 job_type 的数据插入 mysql
最佳答案
这是 MySQL 中的一个错误。升级到 MySQL 5.5.46 或更高版本。
Prior to MySQL 5.5.46, LOAD XML did not handle empty XML elements in the form correctly. (Bug #67542, Bug #16171518)
关于mysql - 如何使用 LOAD XML 将此 xml 数据插入到 mysql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33164359/