【发布时间】:2019-10-01 22:29:41
【问题描述】:
语言:RPGLE
exec sql
declare c1_RC0113_PLP04
sensitive
scroll
cursor for
select ROW_NUMBER() over ( order by A4KQTT ) as rownbr,
A4KQTT,
A4SCAC,
'0',
' '
from PLP04
where A4KQTT >= :#SCACDESC
and A4A8TA = 'A'
and A4KQTT > ' '
order by A4KQTT;
SQL Error:
Message ID . . . . . . : SQL0243 Severity . . . . . . . : 30
Message type . . . . . : Diagnostic
Date sent . . . . . . : 10/01/19 Time sent . . . . . . : 16:55:33
Message . . . . : SENSITIVE cursor C1_RC0113_PLP04 cannot be defined for the
specified SELECT statement.
Cause . . . . . : The cursor C1_RC0113_PLP04 is defined as SENSITIVE but the
query requires the creation of a temporary result table. If the SELECT
statement has a data change table reference, it requires a temporary result
table. A SENSITIVE cursor cannot be implemented.
Recovery . . . : Redefine the cursor as ASENSITIVE or INSENSITIVE or change
the query so that it no longer requires the creation of a temporary result
table.
我假设我因为 over() 而收到错误?
我使用敏感的原因是如果发生插入/更新文件,我想显示它们。
提前致谢。
【问题讨论】:
标签: sql db2 ibm-midrange rpgle cursor-position