當前位置:首頁 » 操作系統 » postgresql資料庫編碼

postgresql資料庫編碼

發布時間: 2024-05-31 06:55:49

㈠ 怎樣讓 PostgreSQL 創建資料庫時默認為 UTF8 編碼

postgres=# \h create database
Command: CREATE DATABASE
Description: create a new database
Syntax:
CREATE DATABASE name
[ [ WITH ] [ OWNER [=] user_name ]
[ TEMPLATE [=] template ]
[ ENCODING [=] encoding ]
[ LC_COLLATE [=] lc_collate ]
[ LC_CTYPE [=] lc_ctype ]
[ TABLESPACE [=] tablespace ]
[ CONNECTION LIMIT [=] connlimit ] ]

--一個例子,指定字元集
CREATE DATABASE wapreader
WITH OWNER = wapreader
TEMPLATE = template0
ENCODING = 'UTF8'
TABLESPACE = tbs_wapreader;

熱點內容
編譯預處理時列印宏的值 發布:2025-09-14 17:11:53 瀏覽:61
linuxvim插件 發布:2025-09-14 17:11:04 瀏覽:941
linux導航 發布:2025-09-14 17:08:57 瀏覽:501
問道登陸器源碼 發布:2025-09-14 17:08:01 瀏覽:904
為什麼安卓手機總是提示軟體停運 發布:2025-09-14 17:01:27 瀏覽:962
破解exe加密視頻軟體 發布:2025-09-14 16:44:18 瀏覽:279
29乘法手指速演算法 發布:2025-09-14 16:11:30 瀏覽:836
iosandroidhtml5 發布:2025-09-14 16:10:39 瀏覽:931
systemuiapk反編譯 發布:2025-09-14 15:46:44 瀏覽:999
php本地安裝 發布:2025-09-14 15:44:59 瀏覽:351