多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.8 KiB

---
title: 'Import data into an existing table'
---
## Import data from CSV / Excel
### Accessing import modal
1. Click on `...` context menu from the toolbar.
2. Click on `Upload` button.
3. Select `Upload CSV` / `Upload Excel` option.
![image](/img/v2/upload-csv-1.png)
### Importing file data
There are two ways to upload source file:
#### 1. Upload from local directory
1. Select `Upload` tab from the Quick import modal.
2. Click on `file upload` button or drag and drop file to the modal.
3. [Advance Settings](#advance-settings) (optional)
4. Click on `Import` button.
![image](/img/v2/upload-csv-2.png)
#### 2. Upload from URL
1. Select `URL` tab from the Quick import modal.
2. Paste the URL of the file.
3. [Advance Settings](#advance-settings) (optional)
4. Click on `Import` button.
![image](/img/v2/upload-csv-url.png)
### Field mapping
1. Existing column names are listed under `Source column`. New columns identified from the import file are listed under `Destination column`. NocoDB auto maps destination column names based on the source column names. One can reconfigure mapping by making use of dropdown that appears on clicking destination column. Checkbox is provided to exclude a column from being imported.
2. Click on `Import` button to start importing the file.
![image](/img/v2/upload-csv-3.png)
### Advance settings
- `# of rows to parse to infer datatype` - defaults to 500 rows.
- `Use first row as headers` - enabled by default. If checked, the first row will be treated as header row & will be used as field names.
## Related articles
- [Table overview](/tables/table-overview)
- [Create table](/tables/create-table)
- [Create table via import](/tables/create-table-via-import)
- [Delete table](/tables/delete-table)
- [Table actions](/tables/actions-on-table)