DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+7 =
Submit