通过odbc访问oracle806,查询条件是中文就查不出结果

dope 2002-12-09 10:08:32
比如说select * from table1 where table1.a = '中国' 就查不出结果,可是数据库中明明有这条记录;

oracle在aix上,字符集是american_america.us7ascii
odbc在英文win2000上

请高手指教
...全文
112 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
dope 2002-12-11
  • 打赏
  • 举报
回复
wanghai(汪海)

也不行;而且结果都是乱码
wanghai 2002-12-11
  • 打赏
  • 举报
回复
NLS改american_america.ZHS16GBK试试
dope 2002-12-10
  • 打赏
  • 举报
回复
jiezhi(往事如烟) :
select * from table1 where trim(both from table1.a) = '中国' 不行
haipeng2950():
select * from tablel a where a.a like '%中国%'; 不行
hopelhs 2002-12-10
  • 打赏
  • 举报
回复
好象是语言问题吧
haipeng2950 2002-12-10
  • 打赏
  • 举报
回复
select * from tablel a where a.a like '%中国%';
jiezhi 2002-12-09
  • 打赏
  • 举报
回复
先加上trim试试
dope 2002-12-09
  • 打赏
  • 举报
回复
oracle 806 在aix上,字符集是american_america.us7ascii
odbc在英文win2000上

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧