# View

## **Create view**

To create a new view:

* Right click on the left sidebar and choose **`New`** > **`View`**.
* Name the view and write the SQL command.
* After you finish, press **`⌘ + S`** to commit changes to the server.

![](/files/-Lrt283efsdRAvaxd61G)

## **Edit view**

To edit an existing view:

* Select to open the view from the left sidebar
* Switch to the structure tab by clicking on the **`Structure`** button at the bottom, or use shortcut key **`⌘ + ^ + ]`**.
* Edit the SQL code of the view.
* After you finish, press **`⌘ + S`** to commit changes to the server.

## **Delete View**

To delete a view, right click on view name on the left sidebar and choose **`Delete`**, or select the view and press **Delete** key.


---

# 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/database-objects/view.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.
