> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bytebase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Schema Diagram

Bytebase's Schema Diagram renders a database's tables and their relationships as an ER Diagram.

## View the Schema Diagram

Open the **SQL Editor** and connect to a database. In the schema panel on the left, click the **Schema Diagram** button — the cube icon at the bottom of the action bar. The diagram opens in a new editor tab.

On databases that organize objects into schemas (such as PostgreSQL and Oracle), you can also right-click a schema in the tree and choose **Schema Diagram**.

<img src="https://mintcdn.com/dbx/5XDH5m9TH7uO2sN4/content/docs/change-database/schema-diagram/schema-diagram.webp?fit=max&auto=format&n=5XDH5m9TH7uO2sN4&q=85&s=defb5f62f017f04fc878cb35aa8b51d1" alt="Schema Diagram in the SQL Editor showing tables and their foreign-key relationships" width="2000" height="1250" data-path="content/docs/change-database/schema-diagram/schema-diagram.webp" />

**Drag the canvas** to move. Use the **mouse wheel**, **trackpad**, or **the -/+ buttons** to zoom in and out.

Use the **search box** to filter tables by name.

Click the **Focus** button in the schema tree or the table header to toggle table highlighting and center the view on that table.

Click the **Fit content within view** button to restore the initial position and zoom.

Click the **Screenshot** button to export the current view as a PNG file. The image is also copied to your clipboard.
