Posted By

axolx on 08/22/10


Tagged

Postgresql


Versions (?)

Create database in PostgreSQL


 / Published in: SQL
 

  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  

You need to login to post a comment.