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;

最新文章

  1. maven打包日志输出优化-去掉泛型与过时的警告
  2. goldengate for big data 12.2.0.1.1新增功能
  3. ZOJ3201 Tree of Tree(树形DP)
  4. jQuery遍历Json数组
  5. [hackerrank]Palindrome Index
  6. 『重构--改善既有代码的设计』读书笔记---Duplicate Observed Data
  7. Spark学习笔记--Graphx
  8. JAVA设计原则
  9. c语言学习基础:[1]开发工具介绍
  10. C# 控件拖动
  11. java.lang.Class类中的某些方法
  12. [知识梳理]课本1&2.1-2.5
  13. 【bzoj 4176】 Lucas的数论 莫比乌斯反演(杜教筛)
  14. HDU 1520 树形DP入门
  15. 多组图自动无限循环(swiper轮播)
  16. hadoop第一个例子
  17. 【MAC】Mac下部分常用的小工具
  18. 点评qq浏览器
  19. JAVA程序设计 实验一报告
  20. Excel 使用AutoFill提示“类Range的AutoFill方法无效”

热门文章

  1. Java字节数组流学习
  2. Spring---基础配置
  3. SQL语句中,除数为0时,相应方法
  4. 控制透明度(兼容IE FF)
  5. php使用curl实现get和post请求的方法,数据传输urldecode和json
  6. python之正则表达式(re模块)用法总结
  7. Gym10198-Mediocre String Problem-2018南京ICPC现场赛
  8. UE编辑器
  9. 日期和时间格式(ISO 8601)
  10. 基础复习之HTML (meta标签、块级元素与行内元素)