# Function

## **Create function**

To create a new function:

* Right click on 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-Lrsz9Any48EcEpJWPj8%2Ffunction.gif?alt=media\&token=93b0470d-1076-4e4e-8a92-0c07f4384086)

## **Edit function**

To edit an existing function:

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

## **Delete Function**

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