Updated on 2024-06-11 GMT+08:00

How Can I Import Data to GaussDB(DWS)?

GaussDB(DWS) supports efficient data import from multiple data sources. The following lists typical data import modes. For details, see section "Importing Data" in the Data Warehouse Service (DWS) Developer Guide.

  • Importing data from the OBS

    Upload data to OBS and then export it to GaussDB(DWS) clusters. Data formats such as CSV and TEXT are supported.

  • Inserting data with INSERT statements

    Use the gsql client tool provided by GaussDB(DWS) or the JDBC/ODBC driver to write data to GaussDB(DWS) from upper-layer applications. GaussDB(DWS) supports complete database transaction-level CRUD operations. This is the simplest method and is applicable to scenarios with small data volume and low concurrency.

  • Importing data with the COPY FROM STDIN command

    Run the COPY FROM STDIN command to write data to a table.