otl的中文结果显示问题 数据库版本 9i程序显示从数据库中读取的英文 数字瞪内容显示正确,但是对读取的中文内容无法显示是何缘故应该如何设置呢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 以下是我的代码#include <iostream>#include <string.h>using namespace std;#include <stdio.h>//#define OTL_UNICODE#define OTL_ORA9I // Compile OTL 4.0/OCI9i#define OTL_ORA_TIMESTAMP // enable Oracle 9i TIMESTAMPs [with [local] time zone]#include "otlv4.h" // include the OTL 4.0 header fileotl_connect db; // connect objectvoid select(int myindex){ int fee; char service[20],content[20]; otl_stream i(1,"select service_id,fee,msg_content from tb_sm_content where msg_index=:f<int>",db); i<<myindex; while(!i.eof()) { i>>service>>fee>>content; cout<<service<<"\n"<<fee<<"\n"<<content<<"\n"; } }int main(){ otl_connect::otl_initialize(); try{ db.rlogon("wap/ptaxwap18@xb18"); select(1); } catch(otl_exception& p){ cerr<<p.msg<<endl; cerr<<p.stm_text<<endl; cerr<<p.sqlstate<<endl; cerr<<p.var_info<<endl; } db.logoff(); // disconnect from Oracle return 0;} oracle数据库中多张表进行查询需要注意什么问题??为什么查不到我想要的值 oracle锁的机制 请教10g rac性能问题 vs2008 用occi 连接oracle 在vmware下,oracle10g R2 rac for win2K3 安装问题,郁闷 oracle用户之间导数据问题 帮忙改错!急。 我想把Sql server or Access中得数据导入到unix下得Oracle 9i中能不能做到啊?????????? 各位大哥,问个超级菜的问题 ORA-02264: 名称已被一现有约束条件占用 请教一个字符窜问题 向各位高手求救,TNS-12637: TNS:封包接收失败
#include <string.h>
using namespace std;
#include <stdio.h>//#define OTL_UNICODE
#define OTL_ORA9I // Compile OTL 4.0/OCI9i
#define OTL_ORA_TIMESTAMP // enable Oracle 9i TIMESTAMPs [with [local] time zone]
#include "otlv4.h" // include the OTL 4.0 header fileotl_connect db; // connect object
void select(int myindex)
{
int fee;
char service[20],content[20];
otl_stream i(1,"select service_id,fee,msg_content from tb_sm_content where msg_index=:f<int>",db);
i<<myindex; while(!i.eof())
{
i>>service>>fee>>content;
cout<<service<<"\n"<<fee<<"\n"<<content<<"\n";
}
}int main()
{
otl_connect::otl_initialize(); try{ db.rlogon("wap/ptaxwap18@xb18");
select(1); } catch(otl_exception& p){
cerr<<p.msg<<endl;
cerr<<p.stm_text<<endl;
cerr<<p.sqlstate<<endl;
cerr<<p.var_info<<endl;
} db.logoff(); // disconnect from Oracle return 0;}