Many RDBMSs implement IF EXISTS
and IF NOT EXISTS
syntax modifiers that can be used with DDL object creation, modification, and deletion, such as CREATE TABLE
and DROP TABLE
statements, to name just a couple.
These syntax modifiers allow us to run such statements without getting an error in the event that the object already exists (if we’re trying to create it or modify it) or doesn’t exist (if we’re trying to drop it).
Continue reading