Drop Table
You are looking at an older version of the documentation. The latest version is found here.
DROP TABLE
Usage
DROP TABLE <dwh_schema_name>.<table_name> ;;
DROP TABLE <datasource_name>.<table_name> ;;
Examples
1. Dropping a table in the dwh
schema:
DROP TABLE dwh.test_table ;;
2. Dropping table in a data source:
DROP TABLE test_tables_pg.test_table_ds ;;
DROP TABLE IF EXISTS
Usage
DROP TABLE IF EXISTS <dwh_schema_name>.<table_name> ;; DROP TABLE IF EXISTS <datasource_name>.<table_name> ;;
No warning will appear if this procedure does not exist; the Server will quietly execute it.
Examples
1. Dropping a table in the dwh
schema:
DROP TABLE if exists "dwh.testtable2" ;;
2. Dropping a table in a data source:
DROP TABLE if exists test_tables_pg.test_table_ds ;;