<?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 Execute a mysql stored procedure in a loop for each row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Execute-a-mysql-stored-procedure-in-a-loop-for-each-row/m-p/2257451#M39532</link>
    <description>&lt;P&gt;Good morning,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a job in Talend where the functionnal reference of my table is created via a stored procedure. The job is quite simple: get data from table A and insert it in a table B, with a new reference created for each row in table B.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I use a tMYSQLSP to call my stored procedure.&lt;/P&gt; 
&lt;P&gt;The reference is create in tMap component by concatening the creation_Date + the output of the stored procedure [ TalendDate.formatDate("yy",row1.DATECRE) + "-" + String.format("%05d", row2.num_ordre) ]&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However, the stored procedure is only execute once. I then have the same reference for each row of table B, which is not good.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;How can I make the stored procedure to be executed for each row of table A ?&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-05-16_12h22_35.png" style="width: 343px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ma6v.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128072iB6730B03C8A16A99/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ma6v.png" alt="0683p000009Ma6v.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-05-16_12h22_55.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ma68.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157273i835F62053442FB9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ma68.png" alt="0683p000009Ma68.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:25:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T02:25:34Z</dc:date>
    <item>
      <title>Execute a mysql stored procedure in a loop for each row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-a-mysql-stored-procedure-in-a-loop-for-each-row/m-p/2257451#M39532</link>
      <description>&lt;P&gt;Good morning,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a job in Talend where the functionnal reference of my table is created via a stored procedure. The job is quite simple: get data from table A and insert it in a table B, with a new reference created for each row in table B.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I use a tMYSQLSP to call my stored procedure.&lt;/P&gt; 
&lt;P&gt;The reference is create in tMap component by concatening the creation_Date + the output of the stored procedure [ TalendDate.formatDate("yy",row1.DATECRE) + "-" + String.format("%05d", row2.num_ordre) ]&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However, the stored procedure is only execute once. I then have the same reference for each row of table B, which is not good.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;How can I make the stored procedure to be executed for each row of table A ?&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-05-16_12h22_35.png" style="width: 343px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ma6v.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128072iB6730B03C8A16A99/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ma6v.png" alt="0683p000009Ma6v.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-05-16_12h22_55.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ma68.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157273i835F62053442FB9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ma68.png" alt="0683p000009Ma68.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-a-mysql-stored-procedure-in-a-loop-for-each-row/m-p/2257451#M39532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a mysql stored procedure in a loop for each row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-a-mysql-stored-procedure-in-a-loop-for-each-row/m-p/2257452#M39533</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LR9kAAG"&gt;@Moe&lt;/A&gt;&amp;nbsp;, you can use tFlowtoiterate between table A and procedure. but I am not sure how it is gone get matching data since the procedure looks and not the main.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 04:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-a-mysql-stored-procedure-in-a-loop-for-each-row/m-p/2257452#M39533</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-05-18T04:57:54Z</dc:date>
    </item>
  </channel>
</rss>

