I have a query in postgre, i convert it to oracle but it's can not run
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
Below is error
TT1001: Syntax error in SQL statement before or at: ""
Error at Line: 4 Column: 108
I know that this error is can not use FOR UPDATE in subquery, but i can not repair it :(