美文网首页数据库
postgresql数据库命令

postgresql数据库命令

作者: WebGiser | 来源:发表于2021-08-14 15:05 被阅读0次
// 连接数据库
psql -h 28.98.126.12 -p 5432 -U postgres -d dmfw;

// 还原数据库
pg_restore -h 28.98.126.12 -p 5432 -U postgres -d dmfw 文件路径;

// 修改表名
alter table old-tablename rename to new-tablename;

// 修改字段名
alter table tablename rename old-fieldname to new-fieldname;

相关文章

网友评论

    本文标题:postgresql数据库命令

    本文链接:https://www.haomeiwen.com/subject/kvxebltx.html