商讯信箱
用户名: @
密  码:   注册|忘记密码
登录
个人用户经销商
您的位置:首页 > 技术频道 > 正文

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
【内容导航】
第1页: 第1页
©版权所有。未经许可,不得转载。
[责任编辑:张志国]