追加到CSV
<h1>功能</h1>
<p>将指定数据表追加到CSV文件中。</p>
<h1><strong>文件</strong></h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>文件路径</td>
<td>【字符串】CSV文件的完整路径。</td>
<td>''F:\测试数据\2.csv''</td>
</tr>
</tbody>
</table>
<h1><strong>输入</strong></h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>数据表</td>
<td>【数据表】准备写入CSV文件的数据。传入的是DataTable变量名</td>
<td>数据表</td>
</tr>
<tr>
<td>分隔符</td>
<td>【枚举】分隔符类型。</td>
<td>Comma</td>
</tr>
</tbody>
</table>
<h1><strong>选项</strong></h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加表头</td>
<td>【布尔】选中后,将把数据表中的表头名称输入到CSV文件中。</td>
<td>是</td>
</tr>
<tr>
<td>编码</td>
<td>【枚举】选择编码的类型。默认为Default类型</td>
<td>Default</td>
</tr>
</tbody>
</table>
<h1><strong>注意/说明</strong></h1>
<p>1.编码类型的选择:选择的编码类型和追加写入的CSV文件的编码类型必须一致。
2.将数据表中的内容追加到CSV文件中,csv文件中原有的内容仍然保留,在原有的内容后进行追加。</p>
<h1>相关函数</h1>
<p>无</p>
<h1><strong>示例/演示</strong></h1>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/07651f47db975937a6eaab4e19afe835" alt="" />
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/4b158f344521ef1db658527171c4b284" alt="" />
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/d353db577af1035c54a397a01cb41b69" alt="" /></p>
<h1>示例附件</h1>
<p><a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/63da4f09c89ae141b2844211fb5047b5" title="[组件[追加到CSV]_20210331.db">组件[追加到CSV]_20210331.db</a></p>