> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 增加列到数据表格

## 指令说明

**描述：** 增加一列到数据表格

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/datatable/images/adddatasheetcolumncommand-01.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=51013edd65987e6b04880c3ac6ac1651" alt="增加列到数据表格指令参数面板" width="642" height="297" data-path="helpcenter/commands/datatable/images/adddatasheetcolumncommand-01.png" />

    | 参数       | 说明                                      |
    | -------- | --------------------------------------- |
    | **数据表格** | 选择一个获取到的或者通过"导入Excel/CSV至数据表格"创建的数据表格对象 |
    | **列名**   | 填写要添加列的列名                               |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/datatable/images/adddatasheetcolumncommand-02.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=120df0f7835773e84bf0c99111ec93c0" alt="增加列到数据表格使用示例 - 流程搭建" width="852" height="199" data-path="helpcenter/commands/datatable/images/adddatasheetcolumncommand-02.png" />

**该流程执行逻辑：**

1. 使用【打印日志】输出“数据表格1”的初始列数，本例为 4 列。
2. 执行【增加列到数据表格】，在“数据表格1”中新增一列。
3. 再次打印列数，结果变为 5，说明新列已经成功加入数据表格。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/datatable/images/adddatasheetcolumncommand-03.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=ae2c92fc29f3d5a83c636c831af12b4f" alt="增加列到数据表格使用示例 - 效果展示" width="831" height="268" data-path="helpcenter/commands/datatable/images/adddatasheetcolumncommand-03.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
