當前位置:首頁 » 操作系統 » 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;

熱點內容
scratch少兒編程課程 發布:2025-04-16 17:11:44 瀏覽:621
榮耀x10從哪裡設置密碼 發布:2025-04-16 17:11:43 瀏覽:350
java從入門到精通視頻 發布:2025-04-16 17:11:43 瀏覽:65
php微信介面教程 發布:2025-04-16 17:07:30 瀏覽:290
android實現陰影 發布:2025-04-16 16:50:08 瀏覽:785
粉筆直播課緩存 發布:2025-04-16 16:31:21 瀏覽:335
機頂盒都有什麼配置 發布:2025-04-16 16:24:37 瀏覽:199
編寫手游反編譯都需要學習什麼 發布:2025-04-16 16:19:36 瀏覽:794
proteus編譯文件位置 發布:2025-04-16 16:18:44 瀏覽:352
土壓縮的本質 發布:2025-04-16 16:13:21 瀏覽:580