thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Data & Analytics · Foundational

DROP Statement

The DDL command that permanently removes a database object, such as a table, view, index or schema, together with its data.

Definition

DROP TABLE removes both the definition and the data, plus dependent indexes and constraints. Most systems cannot recover it without a backup, but Snowflake's UNDROP and Time Travel can restore dropped tables, schemas and databases within the retention period.

Example

DROP TABLE IF EXISTS TempResults;

Exam tip

In Snowflake, a dropped table can be recovered with UNDROP TABLE within its Time Travel retention period.

Related terms