otl_stream o( 1, "{ :E
o.set_commit(0);
int a = 1;
int b = 0;
int c = 2;
otl_long_string d( "abc", 0, 3 );
otl_long_string e;
o << a << c << d;
o >> e >> b >> c;
cout << "b = " << b << '\n';
cout << "c = " << c << '\n';
cout << "e = " << e.v << '\n';
//db.commit();
db.logoff();
}
catch( otl_exception& p ) {
cerr << p.msg << "\n"
<< p.stm_text << "\n"
<< p.sqlstate << "\n"
<< p.var_info << "\n"
<< endl;
}
}
说明:"{ :E
"{ call :Name1
也不是
"{ call :Name1
而是
"{ :Name1
这一点和otl.sourceforge.net上的说明不一样。
| 广告合作:400-664-0084 全国热线:400-664-0084 Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号 珠峰网 版权所有 All Rights Reserved
|