Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
abhi90
Creator II
Creator II

Write Multiple Queries in toracleRow

Hi All,

Hope everyone is doing well 0683p000009MACn.png. I am facing an issue.I am trying to integrate multiple sql queries of Oracle in 1 toracleRow. I have already setup my toracleconnection using allowMultiQueries=true. But when I am using Multiple Queries with ";" separated by them giving ora error of sql command not properly ended. Is there any way of writing multiple queries in one Row components

@rhall@TRF@vboppudi

 

Labels (2)
10 Replies
kotvir
Contributor
Contributor

The correct way to write multiple SQL commnds in ORACLE (which involves Drop and Create statements) is below.

 

"BEGIN 

execute immediate 'DROP SEQUENCE SEQ1' ;

execute immediate 'CREATE SEQUENCE SEQ1 MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';

END

;

"