weidagang2046的專欄

          物格而后知致
          隨筆 - 8, 文章 - 409, 評(píng)論 - 101, 引用 - 0

          導(dǎo)航

          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(12)

          隨筆檔案(8)

          文章分類(421)

          文章檔案(409)

          相冊(cè)

          Link

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          linux下postgresql數(shù)據(jù)庫(kù)中漢字的插入

          首先用postgresql的用戶登陸,(su - postgres) ,然后進(jìn)入數(shù)據(jù)庫(kù),假設(shè)數(shù)據(jù)庫(kù)名稱為“house”,命令為

          [postgres@ITC-S postgres]$ psql house
          Welcome to psql 8.0.1, the PostgreSQL interactive terminal.

          Type:? copyright for distribution terms
           ?????? h for help with SQL commands
           ?????? ? for help with psql commands
           ?????? g or terminate with semicolon to execute query
           ?????? q to quit
          house=#
          輸入encoding GBK
          house=#set encoding GBK
          然后就可以插入漢字了。

          from: http://publish.it168.com/2006/0219/20060219173801.shtml?positioncode=1547

          posted on 2006-12-03 19:55 weidagang2046 閱讀(680) 評(píng)論(0)  編輯  收藏 所屬分類: Database

          主站蜘蛛池模板: 屏东市| 丰顺县| 巴青县| 灵璧县| 得荣县| 巴塘县| 新丰县| 光泽县| 高邑县| 万山特区| 香港| 汪清县| 遂溪县| 荔波县| 唐海县| 延吉市| 郎溪县| 栾川县| 商河县| 当涂县| 佛冈县| 莱西市| 株洲市| 突泉县| 克东县| 临城县| 昂仁县| 龙口市| 丹阳市| 永修县| 双江| 阳谷县| 松溪县| 灵武市| 砀山县| 梁河县| 阿拉尔市| 西丰县| 西华县| 崇文区| 奉化市|