Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Lock a table during update to prevent selects

$
0
0

Paulo Zacarias wrote:

Daniel Batista wrote:

Hi,

I'am trying to apply the same ideia with Oracle but I'm getting an ORA-00933: SQL command not properly ended. 

Any ideas?

SyntaxEditor Code Snippet

UPDATE {Sequences} 
SET  {Sequences}.[LastSeq] = {Sequences}.[LastSeq]+ 1 
WHERE {Sequences}.[DatabaseID] = @DatabaseID 
returning {Sequences}.[LastSeq] into @seq; 
select @seq from dual; 



Hello Daniel, it might be a syntax error.
Please take a look at this: http://www.dba-oracle.com/t_ora_00933_sql_command_ended.htm

Best Regards


Hi Paulo,

I understand your point and I do not find anything wrong. If I split and individually validate the statements I do not get the error. The problem shows up when I put together both statements (update + select from dual...) and I need to have them in the same advanced query...

Any clue?

Best regards



Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>