# Procedure

## **Create** Procedure

To create a new procedure:

* Right click on the left sidebar and choose **`New`** > **`Function/Procedure`**. Or you can also click on the dropdown menu at the bottom of the left sidebar and choose **`New Function/Procedure`**
* Write the SQL command.
* After you finish, press **`⌘ + S`** to commit changes to the server.

![](https://2743975646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LriZ7WXXZykpg6_MQsw%2F-LrsZ99VRfWStSYOrBOk%2F-Lrt1KXqpHzYVzS7XI4k%2Fprocedure.gif?alt=media\&token=63824e95-bc1b-45af-a5eb-a8a6647b07a2)

## **Edit** Procedure

To edit an existing procedure:

* Click on the function name on the left sidebar to view the procedure
* Edit the SQL code
* Press **`⌘ + S`** to commit changes to the server.

## **Delete** Procedure

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