3,491
社区成员
发帖
与我相关
我的任务
分享
...
cs.Lock();
otl_stream outStream(5000, "insert into test values(:f1<int>, :f2<char[20]>, ...", db);
//构造数据并写缓冲区
while(...)
{
outStream << x << "123";
}
cs.unlock();
...
cs.Lock();
otl_stream inStream(5000, "select * from test where ...", db);
//解析数据
while(...)
{
inStream >> i;
inStream >> str;
....
}
cs.unlock();
...
cs.Lock();
otl_cursor::direct_exec(db, "delete from test where ...");
cs.unlock();