PostgreSQL使用

1. PostgreSQL根用户名为: "postgres"

    密码是在安装时设定的


2. 创建数据库

createdb -U postgres mydb1

3. 命令行sql工具: psql(类似oracle的sqlplus)

    退出命令行:"\q"


4. 连接数据库

psql -U postgres mydb1

5. 建表,插入,查询等SQL语句同标准SQL



你可能感兴趣的:(PostgreSQL使用)