考虑以下代码段
const char acSql1[] = "select c.prcn \
from cmn_dr_curr_code c \
where c.currency_code =:s1<char[4]> \
and c.status_code =:i1<int> ";
try
{
otl_stream stm2 (5, // buffer size
acSql1,
*db // connect object
);
stm2<< 840
<< 1;
if (!stm2.eof ())
{
stm2 >> iPrcsion;
return iPrcsion;
}
}
catch (otl_exception & p)
{
}
在这里,我想在分配值后打印stm2,以便我们可以在执行之前查看整个sql。