# Import & Export

## **Import Data**

**To import data from a CSV file to a table**:

* Navigate to **`File`** > **`Import`** > **`From CSV...`**
* Or right click on the table on the left sidebar and choose **`Import`** > **`From CSV...`**

![](/files/-LrtIFzcAzy47psYbpv2)

{% hint style="info" %}
You can import a CSV file and choose to create a new table if it doesn't exist.
{% endhint %}

**To import data from a SQL dump file**:

* Navigate to **`File`** > **`Import`** > **`From SQL Dump...`**
* Or right click on the left sidebar and choose **Import** > **`From SQL Dump...`**

![](/files/-LrtILCS4Xd154YIQQHt)

## **Export Data**

You can export data from the current database to a CSV, JSON, or SQL file.

* Select table(s), navigate to **`File`** > **`Export`**
* Or select table(s), right click and choose **`Export...`**
* Specify the file output and click **`Export...`** button so save it on your disk.

![](/files/-LrtIP46CsqxUUxMv-gL)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tableplus.com/gui-tools/import-and-export.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
