CREATE TABLE problems: Table already exists.

From SQLZOO
Revision as of 09:26, 17 July 2012 by Marek (Talk | contribs) (Created page with "CREATE TABLE problems: Table already exists. <div class='ht'> <div class=params>schema:scott</div> <div> When developing table definitions it may be useful to precede a sequ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, 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)