<?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: Oracle bind variables - again... in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Oracle-bind-variables-again/m-p/2316192#M86762</link>
    <description>&lt;P&gt;We seem to be going round in the same circles that come up every time this question is asked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding is that Talend really just does a "find and replace" with its variables before execution so Oracle would still see a literal value - and thus treat each different value substitution as a different SQL statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'd like  (in jdbc terms) is a prepared statement like&lt;/P&gt;&lt;P&gt;SELECT dept_name FROM DEPTS&lt;/P&gt;&lt;P&gt;WHERE dept_id =  ? ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with &lt;A href="https://context.id/" alt="https://context.id/" target="_blank"&gt;context.i&lt;/A&gt;d passed in as a parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 07:02:57 GMT</pubDate>
    <dc:creator>mq123</dc:creator>
    <dc:date>2022-08-04T07:02:57Z</dc:date>
    <item>
      <title>Oracle bind variables - again...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-bind-variables-again/m-p/2316190#M86760</link>
      <description>&lt;P&gt;I see this subject has been kicking around for quite a few years with no obvious resolution.  Basically Oracle really likes to see things like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT dept_name FROM DEPTS&lt;/P&gt;&lt;P&gt;WHERE dept_id = :bind_variable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rather than seeing an actual literal value being passed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT dept_name FROM DEPTS&lt;/P&gt;&lt;P&gt;WHERE dept_id = 99;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can  Talend do anything like this  &lt;/P&gt;&lt;P&gt;  "out of the box" &lt;/P&gt; for tOracleInput  yet ?  If not, what workarounds are people connecting to Oracle databases using ?&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 16:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-bind-variables-again/m-p/2316190#M86760</guid>
      <dc:creator>mq123</dc:creator>
      <dc:date>2022-08-03T16:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle bind variables - again...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-bind-variables-again/m-p/2316191#M86761</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You are able to add a context variable to a WHERE Clause and you need to keep in mind that the SQL you put in your component is actually a Java String.&lt;/P&gt;&lt;P&gt;So you need to build it like a Java String. For example, if you want to add a context variable to a WHERE Clause, you need to do something like below....&lt;/P&gt;&lt;P&gt;"SELECT dept_name FROM DEPTS&lt;/P&gt;&lt;P&gt;WHERE dept_id == '"+context.id+"'"&lt;/P&gt;&lt;P&gt;Feel free to let us know if it helps.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 04:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-bind-variables-again/m-p/2316191#M86761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-04T04:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle bind variables - again...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-bind-variables-again/m-p/2316192#M86762</link>
      <description>&lt;P&gt;We seem to be going round in the same circles that come up every time this question is asked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding is that Talend really just does a "find and replace" with its variables before execution so Oracle would still see a literal value - and thus treat each different value substitution as a different SQL statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'd like  (in jdbc terms) is a prepared statement like&lt;/P&gt;&lt;P&gt;SELECT dept_name FROM DEPTS&lt;/P&gt;&lt;P&gt;WHERE dept_id =  ? ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with &lt;A href="https://context.id/" alt="https://context.id/" target="_blank"&gt;context.i&lt;/A&gt;d passed in as a parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 07:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-bind-variables-again/m-p/2316192#M86762</guid>
      <dc:creator>mq123</dc:creator>
      <dc:date>2022-08-04T07:02:57Z</dc:date>
    </item>
  </channel>
</rss>

