📜  oracle 显示错误行号 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:57.636000             🧑  作者: Mango

代码示例1
SELECT to_char(a.LINE) || ' - ' || a.TEXT ERROR
FROM ALL_SOURCE a,
     ALL_ERRORS b
WHERE a.NAME = 'object_name'
  AND a.NAME = b.NAME
  AND a.TYPE = b.TYPE
  AND a.LINE = b.LINE
ORDER BY a.NAME, a.LINE;