Create database in PostgreSQL


/ Published in: SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. -- Simple create
  2. CREATE DATABASE dbname WITH OWNER dbowner ENCODING='UNICODE';
  3.  
  4. -- Create from a template
  5. CREATE DATABASE dbname WITH OWNER dbowner ENCODING='UNICODE' TEMPLATE=sourcedb;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.