トップ 差分 一覧 ソース 検索 ヘルプ RSS ログイン

BugTrack-その他のメモ/31

R備忘録 /状態空間モデリング/donlp2/その他のメモ

システム管理関数 - set_config(setting_name, new_value, is_local)

  • 投稿者: みゅ
  • カテゴリ: PostgreSQL
  • 優先度: 普通
  • 状態: 完了
  • 日時: 2010年06月02日 12時59分52秒

内容

クライアントの文字コードを設定する

postgres=# \encoding
EUC_JP
postgres=# \encoding utf-8
postgres=# \encoding
UTF8
postgres=# \encoding UNICODE
postgres=# \encoding
UTF8
postgres=# \encoding EUC_JP
postgres=# \encoding
EUC_JP
postgres=# \encoding EUC_JP
postgres=# SELECT current_setting('client_encoding');
 current_setting
-----------------
 EUC_JP
(1 row)
postgres=# SELECT set_config('client_encoding', 'UNICODE', false);

コメント