sql - PLS-00103:在预期以下情况之一时遇到符号“>”
问题描述
当我运行它时,我有以下 sql 代码,它给出了错误 PLS-00103:遇到符号“>”,当我期望以下之一时:。( * @ % & = - + < / > at in 是 mod 余数不是 rem
SELECT n.id,
n.ain,
to_char(n.open_time +4/24,'dd-mon-yy hh24:mi') open_time,
n.by,
to_char(n.close_time+4/24,'dd-mon-yy hh24:mi') close_time,
n.closed_by,
n.contact_name,
n.category,
n.assignee_name,
n.affected_item,
n.medium,
n.name,
n.Status,
n.escllated,
to_char(n.actual_start+4/24,'dd-mon-yy hh24:mi') actual_start,
to_char(n.actual_finish+4/24,'dd-mon-yy hh24:mi') actual_finish,
n.actual_duration,
n.title,
dbms_lob.substr(n.description,3000) description
FROM MYTABLE n
where n.OPEN_TIME >= to_date('01-may-20') AND n.OPEN_TIME < to_date('18-may-20') AND n.INCIDENT_ID IN (SELECT DISTINCT a1.INCIDENT_ID FROM INCIDENTSA1 a1 ) ;
我收到以下错误
**Execute Query: ORA-06550: line 21, column 175:
PLS-00103: Encountered the symbol ">" when expecting one of the following:
. ( * @ % & = - + < / > at in is mod remainder not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like like2
like4 likec as between || multiset member submultiset
The symbol "( was inserted before ">" to continue.
ORA-06550: line 21, column 221:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
. ( * % & = - + < / > at in is mod remainder not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like like2
like4 likec as between || multiset member submultiset**
有人可以帮忙吗
解决方案
推荐阅读
- scala - 返回类型取决于Scala中的输入类型的通用函数?
- java - BlockingQueue的实例安全HashSet
- css - 在 React 中使用 SASS 子类
- flutter - 无法显示网络图像
- pine-script - 变量似乎保持不变
- windows - 在 Windows 服务启动后运行命令行
- c++ - 使用 WASAPI 录制音频流
- python - How to load HTML file with external link to CSS file with wxPython?
- sql - MySQL 错误 1064:您的 SQL 语法工作台 8.0 中有错误
- javascript - 如何自定义嵌入式推特推文的高度和宽度