forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
6.9 KiB
6.9 KiB
Exporting Data
Procedure
- 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.
1
INSERT INTO product_info_output_ext SELECT * FROM product_info_output;
If information similar to the following is displayed, the data has been exported.INSERT 0 10
- Example 2: Export part of the data to a data file by specifying the filter condition WHERE product_price>500.
1
INSERT INTO product_info_output_ext SELECT * FROM product_info_output WHERE product_price>500;
Parent topic: Exporting CSV/TXT Data to OBS