<?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: Insert Data Into Table With Increment On Key Column in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Into-Table-With-Increment-On-Key-Column/m-p/2342525#M110383</link>
    <description>&lt;P&gt;Found an answer now (RTFM, as usual &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.talend.com/r/en-US/7.3/use-oracle-sequence-insert/set-output-component" alt="https://help.talend.com/r/en-US/7.3/use-oracle-sequence-insert/set-output-component" target="_blank"&gt;https://help.talend.com/r/en-US/7.3/use-oracle-sequence-insert/set-output-component&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This can be applied to a postgres database as well - see attached screen shot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a "Advanced settings" tab on the tDBOutput component which allows to add additional colums. &lt;/P&gt;&lt;P&gt;Add the column name and a SQL expression (nextval('quotes_seq') which is applied to any insert statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 06 May 2023 12:36:41 GMT</pubDate>
    <dc:creator>anmatr</dc:creator>
    <dc:date>2023-05-06T12:36:41Z</dc:date>
    <item>
      <title>Insert Data Into Table With Increment On Key Column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Into-Table-With-Increment-On-Key-Column/m-p/2342522#M110380</link>
      <description>&lt;P&gt;The job loads data from a CSV file, maps it using a lookup and should then store the data into a POSTGRES table. This table uses an auto increment key (sequence). It seems that there is no way to specify a sequence on the tDBOutput component so that on any insert the key gets automatically incremented. This is such a basic feature and I cannot believe this is not implemented in Talend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is already a thread/question with deals with this problem and the "solution" apparently works, but it is not properly explained. There is just a screen shot and its not clear what configuration on the mapping and the other components is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.talend.com/s/feed/0D53p00007vCq7mCAC?language=en_US" target="_blank"&gt;Solution ?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is my job and data - the problem is that the key ID does not get updated on every row. It is only done once and I don't know how to force it to do the sequence lookup on every row passed through the flow.&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>Fri, 15 Nov 2024 21:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Into-Table-With-Increment-On-Key-Column/m-p/2342522#M110380</guid>
      <dc:creator>anmatr</dc:creator>
      <dc:date>2024-11-15T21:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Data Into Table With Increment On Key Column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Into-Table-With-Increment-On-Key-Column/m-p/2342524#M110382</link>
      <description>&lt;P&gt;Hi, thank you for trying but I'm afraid this is not very helpful. I've added a concrete example and was hoping its progressed from there rather than have some theoretical "steps" shown. In fact you mention steps but its not clear what is step1, step2, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, when you mention to create a tDBRow component with the sequence, how can it be assigned to a variable? A tDBRow has as output a QUERY, how can this be used to assign a global variable in the same component? This "step" is far to abstract and theoretical to be able to work out the details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the next lines you describe to use this formula. But what is "your_sequence_name_" ? The DB sequence name? How can Talend know about that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks anyway for trying.&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2023 09:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Into-Table-With-Increment-On-Key-Column/m-p/2342524#M110382</guid>
      <dc:creator>anmatr</dc:creator>
      <dc:date>2023-05-06T09:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Data Into Table With Increment On Key Column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Into-Table-With-Increment-On-Key-Column/m-p/2342525#M110383</link>
      <description>&lt;P&gt;Found an answer now (RTFM, as usual &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.talend.com/r/en-US/7.3/use-oracle-sequence-insert/set-output-component" alt="https://help.talend.com/r/en-US/7.3/use-oracle-sequence-insert/set-output-component" target="_blank"&gt;https://help.talend.com/r/en-US/7.3/use-oracle-sequence-insert/set-output-component&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This can be applied to a postgres database as well - see attached screen shot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a "Advanced settings" tab on the tDBOutput component which allows to add additional colums. &lt;/P&gt;&lt;P&gt;Add the column name and a SQL expression (nextval('quotes_seq') which is applied to any insert statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2023 12:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Into-Table-With-Increment-On-Key-Column/m-p/2342525#M110383</guid>
      <dc:creator>anmatr</dc:creator>
      <dc:date>2023-05-06T12:36:41Z</dc:date>
    </item>
  </channel>
</rss>

