postgresql用sql脚本创建数据库并创建表,创建的表在postgres中?
昨天用pg初始化数据库的时候遇到一些坑,这里给大家分享下。
先来看下我最终成功的执行过程。
sql脚本:
--
-- 创建用户test_user并设置password为test_password
create user test_user with password 'test_password';
-- 创建database test_db设置owner为test_user
create d...
原创
2019-04-11 11:43:00 ·
19738 阅读 ·
0 评论