我在postgre中有一个查询,我把它转换为oracle但是它无法运行
update APITT_tbl_in set status ='Processing' where
id = (select id from APITT_tbl_in where upper(status)='PENDING'
and ROWNUM <= 1 order by priority, id FOR update)
returning reqid,command_name,api,request_msg,receive_node,command_type,id,sla,time_out,priority,receive_time
以下是错误
TT1001: Syntax error in SQL statement before or at: ""
Error at Line: 4 Column: 108
我知道这个错误不能在子查询中使用FOR UPDATE,但是我无法修复它:(