<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to pass variable to tMysqlInput? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-variable-to-tMysqlInput/m-p/2281532#M56029</link>
    <description>&lt;P&gt;Change the expression to build the SQL query, because value must be enclosed between ''&amp;nbsp;:&lt;/P&gt;
&lt;PRE&gt;"select  result from details where customerid = '"+((String)globalMap.get("row1.customer"))+"'"&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Jun 2017 11:36:19 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2017-06-16T11:36:19Z</dc:date>
    <item>
      <title>How to pass variable to tMysqlInput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-variable-to-tMysqlInput/m-p/2281531#M56028</link>
      <description>&lt;P&gt;Hi Talend Community,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a job that needs to do the following:&lt;/P&gt; 
&lt;P&gt;extract data variable from table -&amp;gt; Iterate row-&amp;gt; select new data set based on variable input.&lt;/P&gt; 
&lt;P&gt;Here is my current job&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dbjob.PNG" style="width: 627px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lt50.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144908i0083BF8E1B2B0F16/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lt50.png" alt="0683p000009Lt50.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Here is my tMysqlInput_2 select:&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;"select &amp;nbsp;result from details where customerid ="+((String)globalMap.get("row1.customer"))&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I execute I get the following error&lt;/P&gt; 
&lt;PRE&gt;Exception in component tMysqlInput_2
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'AF214DS' in 'where clause'&lt;/PRE&gt; 
&lt;P&gt;It seems to be replacing the variable with the column name....&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-variable-to-tMysqlInput/m-p/2281531#M56028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable to tMysqlInput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-variable-to-tMysqlInput/m-p/2281532#M56029</link>
      <description>&lt;P&gt;Change the expression to build the SQL query, because value must be enclosed between ''&amp;nbsp;:&lt;/P&gt;
&lt;PRE&gt;"select  result from details where customerid = '"+((String)globalMap.get("row1.customer"))+"'"&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Jun 2017 11:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-variable-to-tMysqlInput/m-p/2281532#M56029</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-06-16T11:36:19Z</dc:date>
    </item>
  </channel>
</rss>

