Import data

Updated at:

You can use the data query feature to import, preview, and explore data. This topic describes how to import data.

Prerequisites

You must create the compute resources required for data import. For more information, see Create a compute resource.

Note

You can import data from the following compute resources: RDS MySQL, MaxCompute, AnalyticDB PostgreSQL, AnalyticDB MySQL 3.0, PostgreSQL, and Hologres.

Procedure

  1. Log on to the Data Resource Platform console.

  2. In the upper-left corner of the page, click the 导航图标 icon and select Collaboration.

  3. In the top menu bar, click the p282243   xia icon, select the target workgroup, and click Asset Processing.

  4. In the navigation pane on the left, click the shujutancha icon, hover the mouse pointer over Data Resource List, and click the 插入物理表 icon.

  5. In the Import Data configuration wizard, configure the parameters.

    1. Upload File: Configure Select Compute Resource and Add or Select Target Table, then drag or select a file to upload, and click Next.

      Note
      • You can import data from resources such as RDS MySQL, MaxCompute, AnalyticDB PostgreSQL, PostgreSQL, and Hologres.

      • You can upload .xlsx and .csv files that are no larger than 512 MB.

      • After the file is uploaded, you can preview and test it.

    2. Preview and Edit Data: Select an Import Method, edit the table schema, select the table sheet to import, and then preview the data.

      Note

      You must select an import method only when you import a data table into an RDS MySQL compute resource. The import methods include the following:

      • Insert: If the primary key values are the same, the new data is ignored.

      • Replace: If the primary key values are the same, the new data overwrites the existing data.

      • Update: If the primary key values are the same, the new data overwrites the existing data, but unmapped fields are not updated.

  6. Click OK and wait for the data import to begin. In the dialog box that appears, click OK again and wait for the import process to complete.