标题: 请指教!!为什么脚本中的sql语句不执行?? [打印本页] 作者: suntu 时间: 2005-10-11 10:39 标题: 请指教!!为什么脚本中的sql语句不执行?? 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");