我想在我的数据库表中插入一些值。名为REQUEST的列之一是BLOB类型,应包含xml文件。假设我想将以下xml内容插入到REQUEST列中:
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
我有以下数据库表:
ID [数字] |创建了[TIMESTAMP(6)] |请求[BLOB)]
我的数据集如下:
<dataset>
<MYTABLE
<ID="1" CREATED="2014-01-2016 00:00:00" REQUEST="<note><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>"
/>
</dataset>
我也尝试过以下操作:
<dataset>
<MYTABLE
<ID="1" CREATED="2014-01-2016 00:00:00" REQUEST="<note><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>"
/>
</dataset>
或:
<dataset>
<MYTABLE
<ID="1" CREATED="2014-01-2016 00:00:00" REQUEST="[FILE]/path_to_file"
/>
</dataset>
REQUEST列保持为空。