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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

SQl Query Retreiving Data from globalmap.get("") function. JAVA ?

SYNTAX is my prob, but im not sure where. My capitolization is correct.
java.sql.ResultSet rs_tMSSqlInput_2 = stmt_tMSSqlInput_2.executeQuery("SELECT dbo.BASE_MODULE_NUMS.MATNR,dbo.BASE_MODULE_NUMS.MAKTX FROM dbo.BASE_MODULE_NUMS where dbo.BASE_MODULE_NUMS.MATNR ="((String)globalMap.get("row2.MATNR"))");
Thanks
Labels (3)
1 Reply
Anonymous
Not applicable
Author

you need to concatenate strings in Java.
where dbo.BASE_MODULE_NUMS.MATNR = " + (String)globalMap.get("row2.MATNR"));

Talend also supports Perl which is a bit more "user friendly" when it comes to string handling.