---
title: See functions, triggers and more
project: TotalSQL
version: Latest
section: guides
language: en
license: 
url: https://totaljs.es/docs/totalsql/latest/guides/functions-and-more/
updated: 2026-12-02T15:40:26.075Z
---

# See functions, triggers and more

> Below the tables, the list has the rest of what your database holds, each with the SQL that makes it: to read it, to copy it or to change it.

## What each database has

| Section | PostgreSQL | MySQL and MariaDB | SQL Server | SQLite |
| --- | --- | --- | --- | --- |
| **Functions** | Yes | Yes | Yes | No |
| **Procedures** | Yes | Yes | Yes | No |
| **Sequences** | Yes | No | Yes | No |
| **Types** | Yes | No | Yes | No |
| **Triggers** | Yes | Yes | Yes | Yes |
| **Events** | No | Yes | No | No |
| **Extensions** | Yes | No | No | No |
| **Extensions to add** | Yes | No | No | No |
| **Roles and users** | Yes | Yes | Yes | No |

Press a section to unfold it. **Find a table** also looks in the names of these things.

If your user may not read a section, the end of the list says so: **Not readable with this user**.

## See how something is made

Press it. A tab opens with its SQL. **Copy** copies it, and **Reload** reads it again.

For a user of MySQL or MariaDB, the SQL has its permissions. Passwords are never shown. The range types of PostgreSQL and the table types of SQL Server have only a note, without their SQL.

## Change it

1. Press **Change it in a query**. The SQL goes to a new query.
2. Change it there, and press **Run**.

The functions and procedures of PostgreSQL come as `CREATE OR REPLACE`, which takes the place of the old one. In the other cases the SQL is a `CREATE`, and the database refuses it while the old one exists. Write a `DROP` before it, or change `CREATE` to `ALTER` in the functions, procedures and triggers of SQL Server.

> A `DROP` that runs before a `CREATE` with an error leaves you without the thing. Copy its SQL before you begin.

## Make a new one

Press the plus of the section. A query opens with a first draft in the words of your database, for example **New function…** Change the names and the body, and run it. Extensions and roles have no draft.

## Add an extension of PostgreSQL

**Extensions to add** has those that the server offers and the database does not have yet. Press one, then **Change it in a query**, and **Run**. Your user needs permission for it.
