2016-12-28 76 views

回答

0
first way is:<br> 
    CREATE DATABASE dbname; 

for example:<br> 
    postgres=# CREATE DATABASE testdb;<br> 
    postgres-# 

Second way is:<br> 
    createdb command<br> 

    **for example:**<br> 
     createdb -h localhost -p 5432 -U postgres testdb