Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgres create database if not exists

SELECT 'CREATE DATABASE mydb'
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'mydb')gexec
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgres #create #database #exists
ADD COMMENT
Topic
Name
6+7 =