Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/58.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 从SQL中提取文本和ID_Mysql_Sql_Xml - Fatal编程技术网

Mysql 从SQL中提取文本和ID

Mysql 从SQL中提取文本和ID,mysql,sql,xml,Mysql,Sql,Xml,我目前在试图从一列数据中的一些XML中提取一些文本和id号时遇到了问题 例如: <item> <attr id="1">GOOD</attr> <attr id="2">YELLOW </attr> <attr id="3">18</attr> <attr id="4">Not</attr> <attr id="5">60</attr> <attr id="6

我目前在试图从一列数据中的一些XML中提取一些文本和id号时遇到了问题

例如:

<item>
<attr id="1">GOOD</attr>
<attr id="2">YELLOW </attr>
<attr id="3">18</attr>
<attr id="4">Not</attr>
<attr id="5">60</attr>
<attr id="6">NEW</attr>
</item>
使用MySQL

任何帮助都会很好


谢谢

使用MySQL或其他数据库?@jarlh抱歉,MySQL是correct@Shawn.X抱歉,MySQL是正确的,您现在使用的是哪个版本的MySQL?使用MySQL还是其他DB?@jarlh抱歉,MySQL是正确的correct@Shawn.X抱歉,MySQL是正确的,您现在使用的是哪个版本的MySQL?
ID    TEXT
1    GOOD
2    YELLOW
ETC