<?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 a parmeter value into MySQL query within Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-parmeter-value-into-MySQL-query-within-Talend/m-p/2275015#M51518</link>
    <description>The syntax in the query field can either be a literal, quoted string eg "SELECT ID, NAME FROM CUSTOMER" or any expression like "SELECT ID,NAME FROM CUSTOMER WHERE COUNTRY='" + context.CountryCode = "'"
&lt;BR /&gt;In the context editor you can define default values and prompts for any context variable
&lt;BR /&gt;T</description>
    <pubDate>Thu, 30 Sep 2010 21:51:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-09-30T21:51:39Z</dc:date>
    <item>
      <title>How to pass a parmeter value into MySQL query within Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-parmeter-value-into-MySQL-query-within-Talend/m-p/2275014#M51517</link>
      <description>I just started working with Talend and I have a basic question regarding passing parameters into a MySQL query within Open Studio. I have a basic ETL process that I wanted to parameterize the MONTH_ID and attempt to pass in a month id to process one month at a time. 
&lt;BR /&gt;For Example: (200801 would be the value I would want to parameterize. 
&lt;BR /&gt;SELECT Col1, col2, col3 
&lt;BR /&gt;FROM MySQL.Table 
&lt;BR /&gt;WHERE MONTH_ID = 200801 
&lt;BR /&gt; 
&lt;BR /&gt;Questions: 
&lt;BR /&gt;1. From reading the forum it sounds like I need to use a context variable, but I am finding mix results on the syntax of passing it in the SQL. If it is a numeric do I just supply the context variable like - + context.month_id + 
&lt;BR /&gt;2. How do I supply the new value at run time. 200801, 200802, 200803,...201009?? Will I be prompted? 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks in advance - Mike D</description>
      <pubDate>Sat, 16 Nov 2024 13:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-parmeter-value-into-MySQL-query-within-Talend/m-p/2275014#M51517</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a parmeter value into MySQL query within Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-parmeter-value-into-MySQL-query-within-Talend/m-p/2275015#M51518</link>
      <description>The syntax in the query field can either be a literal, quoted string eg "SELECT ID, NAME FROM CUSTOMER" or any expression like "SELECT ID,NAME FROM CUSTOMER WHERE COUNTRY='" + context.CountryCode = "'"
&lt;BR /&gt;In the context editor you can define default values and prompts for any context variable
&lt;BR /&gt;T</description>
      <pubDate>Thu, 30 Sep 2010 21:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-parmeter-value-into-MySQL-query-within-Talend/m-p/2275015#M51518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-30T21:51:39Z</dc:date>
    </item>
  </channel>
</rss>

