1.CURSOR c1 IS select sum(kc) as szc,vendor from spvdjxc where    ddate='20020514' group by vendor having vendor
    like myvendor;   
改为:
CURSOR c1 IS select sum(kc) as szc,vendor from spvdjxc where    ddate='20020514' and vendor like myvendor group by vendor ;   
2.select c1_rec.szc+sum(jh+dr+ts+py_bc-(ls_pf_buy+DC_FC+tj+pk_bd_bs)) into c1_rec.szc
     from spvdjxc where  ddate>='20020515' and ddate<=enddate and vendor=c1_rec.vendor;
可以into cl_rec.szc吗?
3.spvdjxc表有按vendor的索引吗?