PostgreSQL create table if not exists

In a MySQL script you can write:

CREATE TABLE IF NOT EXISTS foo ...;

… other stuff …

and then you can run the script many times without re-creating the table.

How do you do this in PostgreSQL?

6 Answers
6

Leave a Comment