当前位置:IT168首页 > 技术开发 >
[收藏此页] [打印] [推荐] [评论]

Linux下Postgresql数据库中汉字插入

责任编辑:张芳作者:IT168   2006-07-07   
  【IT168 技术文档】首先用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=#encoding GBK
  然后就可以插入汉字了。

上一页
1
下一页
收藏到: 添加到“百度搜藏”添加到“QQ书签”添加到“Google书签”添加到“Yahoo收藏”添加到“和讯网摘”
【内容导航】
  • 第1页:
本文欢迎转载,转载请注明:转载自IT168 [ http://www.it168.com/ ]
本文链接:http://tech.it168.com/oldarticle/2006-07-07/200607070834235.shtml
技术开发相关文章   其他数据库
  • 暂无
友情推介