Dec 15, 2006 #1 olav78 Programmer Dec 12, 2006 3 NO CREATE DATABASE test IF NOT EXISTS. how can I do this in postgreSQL?
Dec 15, 2006 2 #2 ceco IS-IT--Management Oct 16, 2002 229 BG if you are using recent version you can do something like BEGIN; SAVEPOINT crt; CREATE TABLE test (id integer); if it generates error ROLLBACK TO SAVEPOINT crt; and continue if there is no error RELEASE SAVEPOINT crt and continue at the end COMMIT; Upvote 0 Downvote
if you are using recent version you can do something like BEGIN; SAVEPOINT crt; CREATE TABLE test (id integer); if it generates error ROLLBACK TO SAVEPOINT crt; and continue if there is no error RELEASE SAVEPOINT crt and continue at the end COMMIT;