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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
DrGenious
Creator
Creator

parse a query into a variable

Hey,

 

Is it possible to have this code in talend? 

//Inialize Id
query = "SELECT id, name " +
" FROM total_type_id " +
" ORDER BY name ,id";
ps = conn.prepareStatement(query);
rs = ps.executeQuery();
Have I to to do it like above inside the query component? Or I can in a tjava component just put this code an the name of the db?

Labels (2)
2 Replies
Anonymous
Not applicable

Hi,

 

Can you explain why you cannot just write the query directly in a tDBInput component?

 

DrGenious
Creator
Creator
Author

@tehLurdUfEngmer  Hi. The reason is because I want to store the result into a variable.