Database: Check if table exists

Check if a table exists in the database.

Help Centre › Building Processes

Check if a table exists in the database.

Add it to a process

In the process designer, open the Add step tab. Find Check if table exists under Database › Schema, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
VariableYesName of the variable where the result will be stored Default: exists.
Connection nameYesConnection name
Table nameYesThe database table name
SchemaNoThe database schema name

What it gives back

  • {exists} – True if table exists

See all Database steps.

Errors

ErrorDescription
Connection not foundNo open connection exists with the specified name

Tips

  • Check before CREATE TABLE or INSERT operations to avoid errors
  • Use in combination with conditional logic to create tables on first run

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.