码迷,mamicode.com
首页 > 数据库 > 详细

查看 postgresql 数据库编码,以及修改数据库编码

时间:2018-07-27 19:12:09      阅读:811      评论:0      收藏:0      [点我收藏+]

标签:tom   odi   col   tps   div   data   base   style   tab   

查看数据表编码:

\encoding

 

修改数据库编码:

update pg_database set encoding = pg_char_to_encoding(UTF8) where datname = your_database;

 

 

参考:https://www.cnblogs.com/Tommy-Yu/p/6409494.html

查看 postgresql 数据库编码,以及修改数据库编码

标签:tom   odi   col   tps   div   data   base   style   tab   

原文地址:https://www.cnblogs.com/tommy-huang/p/9379110.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!