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 阅读(640) 评论(0)  编辑  收藏 所属分类: Database


只有注册用户登录后才能发表评论。


网站导航: