database - Getting error while using two cursors -
getting error while using 2 cursors
[error] pls-00103 (45: 48): pls-00103: encountered symbol "tx_com_location" when expecting 1 of following: := . ( @ % ; symbol ":=" substituted "tx_com_location" continue.
please help
create or replace procedure com_location_txm begin declare cursor txm_com_location select col1,col2,col3 tbl_sar_salas_1 a; cursor tx_com_location select col1,col2,col3 tbl_locales b; tmp_txm txm_com_location%rowtype; tmp_txm tx_com_cocation%rowtype; begin if not txm_com_location%isopen open txm_com_location; end if; fetch txm_com_location tmp_txm; exit when txm_com_location%notfound; if not tx_com_location%isopen open txcom_location; end if; loop fetch tx_com_location tmp_tx; exit when tx_com_location%notfound; begin insert statement() end; end loop; end loop; commit; end; end com_location_txm ;
Comments
Post a Comment