plsql exception
2024-09-06 01:33:12
EXCEPTION aligns with BEGIN ... END blocks. There is no BEGIN inside your loop, so there should be no exception either.
It seems the purpose of the exception is to suppress NO_DATA_FOUND errors inside the loop. So to fix this error you need to put a BEGIN / END block in the loop too. (Ah, you have an END just no BEGIN - your code would hurl with the EXCEPTION block).
FOR indx IN 1 .. arr.COUNT
LOOP
BEGIN
SELECT COUNT(*), ca.cities
INTO tmp_count, affected_cities
FROM PDB.utilities ca
....
EXCEPTION
WHEN NO_DATA_FOUND THEN
CONTINUE;
END;
END LOOP;
最新文章
- maven打包日志输出优化-去掉泛型与过时的警告
- goldengate for big data 12.2.0.1.1新增功能
- ZOJ3201 Tree of Tree(树形DP)
- jQuery遍历Json数组
- [hackerrank]Palindrome Index
- 『重构--改善既有代码的设计』读书笔记---Duplicate Observed Data
- Spark学习笔记--Graphx
- JAVA设计原则
- c语言学习基础:[1]开发工具介绍
- C# 控件拖动
- java.lang.Class类中的某些方法
- [知识梳理]课本1&;2.1-2.5
- 【bzoj 4176】 Lucas的数论 莫比乌斯反演(杜教筛)
- HDU 1520 树形DP入门
- 多组图自动无限循环(swiper轮播)
- hadoop第一个例子
- 【MAC】Mac下部分常用的小工具
- 点评qq浏览器
- JAVA程序设计 实验一报告
- Excel 使用AutoFill提示“类Range的AutoFill方法无效”