使用两个游标时出错
[Error] PLS-00103 (45: 48): PLS-00103: Encountered the symbol
"TX_COM_LOCATION" when expecting one of the following:
:= . ( @ % ;
The symbol ":=" was substituted for
"TX_COM_LOCATION" to continue.
请帮忙
答案 0 :(得分:0)
检查一下:
创建或替换过程COM_LOCATION_TXM是BEGIN DECLARE CURSOR TXM_COM_LOCATION是SELECT col1,col2,col3 FROM TBL_SAR_SALAS_1 A; CURSOR TX_COM_LOCATION是选择col1,col2,col3 FROM TBL_LOCALES B; TMP_TXM TXM_COM_LOCATION%ROWTYPE; TMP_TXM TX_COM_LOCATION%ROWTYPE;如果没有TXM_COM_LOCATION%ISOPEN,则开始TXM_COM_LOCATION;万一; LOOP FETCH TXM_COM_LOCATION INTO TMP_TXM; TXM_COM_LOCATION%NOTFOUND时退出;如果没有TX_COM_LOCATION%ISOPEN那么打开TXCOM_LOCATION;万一; LOOP FETCH TX_COM_LOCATION INTO TMP_TX; TX_COM_LOCATION%NOTFOUND时退出; BEGIN NULL; - 使用INSERT STATEMENT END替换NULL;结束循环;结束循环;承诺;结束; END COM_LOCATION_TXM;
答案 1 :(得分:0)
GenericGraph