docs:cdiwadkar16-patch-4-34 - minor

Minor stylistic changes.
This commit is contained in:
Chait Diwadkar 2022-05-28 20:48:53 -07:00 committed by gccgdb1234
parent 7320c84777
commit 330aec37c3
1 changed files with 5 additions and 3 deletions

View File

@ -2,11 +2,13 @@
title: Data Export title: Data Export
--- ---
There are two ways of exporting data from a TDengine cluster, one is SQL statement in TDengine CLI, the other one is `taosdump`. There are two ways of exporting data from a TDengine cluster:
- Using a SQL statement in TDengine CLI
- Using the `taosdump` tool
## Export Using SQL ## Export Using SQL
If you want to export the data of a table or a STable, please execute below SQL statement in TDengine CLI. If you want to export the data of a table or a STable, please execute the SQL statement below, in the TDengine CLI.
```sql ```sql
select * from <tb_name> >> data.csv; select * from <tb_name> >> data.csv;
@ -16,4 +18,4 @@ The data of table or STable specified by `tb_name` will be exported into a file
## Export Using taosdump ## Export Using taosdump
With `taosdump`, you can choose to export the data of all databases, a database, a table or a STable, you can also choose export the data within a time range, or even only export the schema definition of a table. For the details of using `taosdump` please refer to [Tool for exporting and importing data: taosdump](/reference/taosdump). With `taosdump`, you can choose to export the data of all databases, a database, a table or a STable, you can also choose to export the data within a time range, or even only export the schema definition of a table. For the details of using `taosdump` please refer to [Tool for exporting and importing data: taosdump](/reference/taosdump).