> ## 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.

# 数据表格

> 在流程内部创建、编辑、查询二维数据表，作为数据暂存和流转的载体。

**数据表格**是八爪鱼 RPA 的核心数据结构，相当于流程运行时的"内存数据库"。你可以在流程中动态创建、增删改查数据表，作为各步骤之间数据传递的中转站。

## 指令能做什么

* **创建数据表**：动态创建列，定义列名和数据类型
* **增删改查**：添加行、删除行、更新单元格、按条件查询行
* **数据导入导出**：从 Excel/CSV/JSON 导入数据，也可导出到文件
* **表格运算**：排序、去重、分组统计、合并表格

## 适用场景

| 场景    | 说明                          |
| ----- | --------------------------- |
| 数据中转  | 网页抓取的数据先存入数据表格，清洗后再写入 Excel |
| 多步骤聚合 | 多个子流程的返回结果汇总到一个数据表格，最终生成报表  |
| 去重过滤  | 采集的列表数据自动去重后再逐条处理           |

## 子指令

<CardGroup cols={2}>
  <Card title="按单元格写入内容至数据表格" icon="pen-to-square" href="/helpcenter/helpcenter/commands/datatable/writetocellcommand">
    在数据表格中按单元格写入内容，更改数据表格中某单元格的内容
  </Card>

  <Card title="按行写入内容至数据表格" icon="pen-to-square" href="/helpcenter/helpcenter/commands/datatable/writetorowcommand">
    在数据表格中按行写入内容，支持追加、插入或覆盖
  </Card>

  <Card title="删除数据表格数据" icon="trash" href="/helpcenter/helpcenter/commands/datatable/deletedatasheetrowcommand">
    删除数据表格的所有行或者指定行
  </Card>

  <Card title="增加列到数据表格" icon="plus" href="/helpcenter/helpcenter/commands/datatable/adddatasheetcolumncommand">
    增加一列到数据表格
  </Card>

  <Card title="循环数据表格内容" icon="rotate" href="/helpcenter/helpcenter/commands/datatable/loopdatasheetcommand_1">
    按行循环数据表格的内容，并保存循环项
  </Card>

  <Card title="读取数据表格内容" icon="book-open" href="/helpcenter/helpcenter/commands/datatable/readdatasheetcommand">
    从数据表格中读取内容，支持矩形区域范围读取
  </Card>

  <Card title="导入Excel至数据表格" icon="file-import" href="/helpcenter/helpcenter/commands/datatable/importexceltodatasheetcommand">
    导入本地的Excel表格数据到数据表格
  </Card>

  <Card title="导入Csv数据表格" icon="file-import" href="/helpcenter/helpcenter/commands/datatable/importcsvtodatasheetcommand">
    导入Csv数据到数据表格
  </Card>

  <Card title="导出数据表格" icon="file-export" href="/helpcenter/helpcenter/commands/datatable/exportdatasheettofilecommand">
    将数据表格导出为文件
  </Card>

  <Card title="批量导出数据表格" icon="file-export" href="/helpcenter/helpcenter/commands/datatable/exportmultidatasheettofilecommand">
    将多个数据表格合并导出为一个表格文件
  </Card>
</CardGroup>

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