|
if(db_connect("query1","DRIVER={Oracle in OraHome92};SERVER=HEADDB;UID=KSTAR;PWD=KSTAR;DBQ=HEADDB;DBA=W;APA=T;EXC=F;XSM=Default;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=Lo;BAM=IfAllSuccessful;MTS=F;MDI=Me;CSR=F;FWC=F;PFC=10;TLO=O;",30)==E_OK)
{
report_msg("测试连接成功");
db_execute_query("query1","select * from VENTURE.VW_RESULT_2000010 where (currency_code = '0' ) and tradedate between '20050301' and '20050310' and branch_code='0210'",record_number);
print(" query record num=" &record_num);
}
else
report_msg("fail");
执行后显示测试连接正确,但是无法取回记录数量。而且执行该db_execute_query时非常迅速,一闪而过,但并不报错。请问是出了什么问题??
请大家指点一下,我是新手,刚开始看winrunner,可是任务又催的很紧。
拜托大家帮帮忙。。谢谢了。。 |
|