sql - ORA-06550 error PLS-00103 error -
declare nanid number; vpin varchar2(10 byte); vuse_type varchar2(20 byte); vapp_num varchar2(10 byte); dapp_date date; vdisplay varchar2(3 byte); vapp_status varchar2(10 byte); mshape mdsys.sdo_geometry; /* records exist in dgi not in kiv using anid */ cursor curgetmj select d.anid,d. pin, d.use_type, d.app_num, d.app_date, d.display, d.app_status, d.shape dsdspa.dsd_marijuana@dgi d d.anid not in (select anid kivaprod.marijuana); curgetmj_rec curgetmj%rowtype; begin open curgetmj; loop fetch curgetmj curgetmj_rec; exit when curgetmj%notfound; vanid := curgetmj_rec.anid; vpin := curgetmj_rec.pin; vuse_type := curgetmj_rec.use_type; vapp_num := curgetmj_rec.app_num; dapp_date := curgetmj_rec.app_num; vdisplay := curgetmj_rec.display; vapp_status := curgetmj_rec.app_status; mshape := curgetmj_rec.shape; insert kivaprod.marijuana (anid, pin, use_type, app_num, app_date, display, app_status, shape) values (307, '14211', 'd', '15-05', 2015-04-15, 'y', '', mshape); end loop; close curgetmj;
missing end;
entire begin...end;
block.
Comments
Post a Comment