invantive documentation
Invantive Support ForumsLog In / Sign Up

Drop Table (dropTableStatement)

Syntax

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    dropTableStatement_start((START))
    dropTableStatement_start --> dropTableStatement_0_0[DROP]:::quoted
    dropTableStatement_0_0 --> dropTableStatement_0_1[TABLE]:::quoted
    dropTableStatement_0_1 --> dropTableStatement_0_2[tableSpec]
    dropTableStatement_0_2 --> dropTableStatement_end((END))

Purpose

Drop the specified table on the specified platform. An error is raised when no table exists by that name.

When using the if exists clause (available from 25.0.41 and 24.0.778), the table is only dropped when a previous version of the identical named table exists.