CREATE TABLE problems: Table already exists.

From SQLZoo
Jump to navigation Jump to search

CREATE TABLE problems: Table already exists.

schema:scott

When developing table definitions it may be useful to precede a sequence of CREATE TABLE statements with the corresponding DROP TABLE statements in the reverse order (see next tip).

CREATE TABLE t_holiday (a INTEGER)
CREATE TABLE IF NOT EXISTS
 t_holiday(a INTEGER)
DataWars, Data Science Practice Projects - LogoDataWars: Practice Data Science/Analysis with +100 Real Life Projects