weidagang2046的專欄

          物格而后知致
          隨筆 - 8, 文章 - 409, 評論 - 101, 引用 - 0
          數據加載中……

          linux下postgresql數據庫中漢字的插入

          首先用postgresql的用戶登陸,(su - postgres) ,然后進入數據庫,假設數據庫名稱為“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 閱讀(681) 評論(0)  編輯  收藏 所屬分類: Database

          主站蜘蛛池模板: 江山市| 博客| 耿马| 漳浦县| 普陀区| 广元市| 邢台县| 大理市| 宣城市| 马尔康县| 汶上县| 宜章县| 星座| 娱乐| 阿荣旗| 嘉善县| 南靖县| 株洲县| 万安县| 大同县| 休宁县| 扎鲁特旗| 收藏| 蒲城县| 五指山市| 浦县| 闽侯县| 若羌县| 四子王旗| 聂拉木县| 建瓯市| 惠东县| 台北县| 洪雅县| 锡林浩特市| 凉城县| 通辽市| 麻江县| 波密县| 新巴尔虎左旗| 昭苏县|