Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
abhi90
Creator II
Creator II

tOracleRow is giving error

Hi All;

 

I am trying to create a Table using tOracleRow.I am trying to create Table with The Below statement

DROP TABLE TEMP_ORDERS;
CREATE Table TEMP_ORDERS AS
select a.ITEM_NAME,b.MANUFACTURER_NAME from ITEMS a
LEFT OUTER JOIN MANUFACTURERS b
ON a.MANUFACTURER_ID=b.MANUFACTURER_ID;

Now the Problem is this query is running fine sql Developer.Whereas when i am pasting this query in tOracleRow or tOracleinput it is saying that invalid char.Then I tried removing the ";" but it is saying that SQL Command not properly ended.Shong Can u help me0683p000009LuDz.jpg0683p000009LuEE.jpg

Labels (2)
5 Replies
abhi90
Creator II
Creator II
Author

Anyone with any soln?

abhi90
Creator II
Creator II
Author

Hi Shong,xdshi;

 

Can you help regarding this

vapukov
Master II
Master II

it not understand ; as separator (/ as well)

 

as solution:

- for simple cases - chain of tOracleRow

- more proper - put all code in stored procedure and call it

cterenzi
Specialist
Specialist

Possibly relevant:

https://help.talend.com/display/KB/Executing+multiple+SQL+statements+with+one+tOracleRow+component

 

Beyond that, I seem to remember a comment that some databases need a particular setting enabled in order to issue multiple commands with one component, but cannot find the thread on the old forum.

vapukov
Master II
Master II

exactly!

thank You for link, I knew about BEGIN END, but it not work with DDL and I forget about EXECUTE

 

BEGIN
EXECUTE IMMEDIATE 'DROP TABLE TEMP_ORDERS'; EXECUTE IMMEDIATE 'CREATE Table TEMP_ORDERS AS select a.ITEM_NAME,b.MANUFACTURER_NAME from ITEMS a LEFT OUTER JOIN MANUFACTURERS b ON a.MANUFACTURER_ID=b.MANUFACTURER_ID';
END;