|
如下:
lrd_ora8_stmt(OraStm1, "select count(*) from call_list where status_fk='2'and id='{p_callid}'", 1,0,0);
lrd_ora8_exec(OraSvc1, OraStm1, 0, 0,&rownum, 0, 0, 0, 0, 1);
lrd_ora8_bind_col(OraStm1, &OraDef1, 1, &NUM, 0, 0);
lrd_ora8_save_col (OraStm1, 1, 1, 0, "ROW");
lrd_ora8_fetch(OraStm1, -1, 15, &uliFetchedRows, 0, 2, 0, 0);
lr_output_message("value : %s", lr_eval_string("The count is: {ROW}"));
if(atoi(lr_eval_string("{ROW}"))>0)
{
lr_end_transaction("T_Egressive_brief_summary", LR_PASS);
}
else
{
lr_end_transaction("T_Egressive_brief_summary", LR_FAIL);
} |
|