Help Center/ Data Warehouse Service/ Data Migration and Synchronization/ Exporting Data/ Exporting Data to OBS/ Exporting CSV/TXT Data to OBS/ Exporting Data
Updated on 2025-09-18 GMT+08:00
Exporting Data
Syntax
Run the following command to export data:
1 | INSERT INTO [Foreign table name] SELECT * FROM [Source table name]; |
Examples
- Example 1: Export data from table product_info_output to a data file through the product_info_output_ext foreign table.
1INSERT INTO product_info_output_ext SELECT * FROM product_info_output;
If information similar to the following is displayed, the data has been exported.1INSERT 0 10
- Example 2: Export part of the data to a data file by specifying the filter condition WHERE product_price>500.
1INSERT INTO product_info_output_ext SELECT * FROM product_info_output WHERE product_price>500;
- The directory to be used for data storage must be empty, or the export will fail.
- Data of a special type, such as RAW, is exported as a binary file, which cannot be recognized by the import tool. You need to use the RAWTOHEX() function to convert it to the hexadecimal format before export.
Parent topic: Exporting CSV/TXT Data to OBS
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.