Import data
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.
You can import data from the following compute resources: RDS MySQL, MaxCompute, AnalyticDB PostgreSQL, AnalyticDB MySQL 3.0, PostgreSQL, and Hologres.
Procedure
Log on to the Data Resource Platform console.
In the upper-left corner of the page, click the
icon and select Collaboration.In the top menu bar, click the
icon, select the target workgroup, and click Asset Processing.In the navigation pane on the left, click the
icon, hover the mouse pointer over Data Resource List, and click the
icon.In the Import Data configuration wizard, configure the parameters.
Upload File: Configure Select Compute Resource and Add or Select Target Table, then drag or select a file to upload, and click Next.
NoteYou 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.
Preview and Edit Data: Select an Import Method, edit the table schema, select the table sheet to import, and then preview the data.
NoteYou 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.
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.