PostgreSQL基本用法
PostgreSQL基本用法
greenplum服务器
1 进入服务器
1
psql username
2 创建数据库
1
2
3
4
5
# 方法1:在终端使用createdb命令
createdb databasename
# 方法2:在PostgreSQL内使用命令
create database databasename
3 列出所有的数据库
1
\l
4 进入其中一个数据库
1
\c databasename
5 返回PostgreSQL主界面
1
\q
This post is licensed under CC BY 4.0 by the author.