遗忘海岸

江湖程序员 -Feiph(LM战士)

导航

动态查询与查询分析器的查找替换

string stockname,Sql
int i
this.reset( )
SQL = "Select p_partno from p_partno where  p_bs = '1' group by p_partno order by p_partno "
declare my1 dynamic cursor for sqlsa;
prepare sqlsa from :Sql;
open my1;
fetch my1 into:stockname;
do while sqlca.sqlcode = 0
	stockname = trim(stockname)
	additem( stockname ) 
	fetch my1 into:stockname;
loop
close my1;
additem( "" )

posted on 2011-11-11 18:57  遗忘海岸  阅读(639)  评论(0编辑  收藏  举报