<?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 How to insert to table has an auto increment field with tDBOutput? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-to-table-has-an-auto-increment-field-with/m-p/2309959#M81136</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt; 
&lt;P&gt;I have thousand CSV data rows and I want to insert them into a table has an auto increment field, I use:&lt;/P&gt; 
&lt;P&gt;tFileDelimited -&amp;gt; tMap -&amp;gt;&amp;nbsp; tDBOutput&amp;nbsp;&amp;nbsp; But it insert data with wrong columns order&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I print SQL query to console by tJava with ((String)globalMap.get("tPostgresqlOutput_5_QUERY")), then copy the query to Database IDE and excute, it work - insert successful.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What happend with my job ? And How to insert to table has an auto increment field with tDBOutput?&lt;/P&gt; 
&lt;P&gt;Thank all. &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2017 11:28:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-22T11:28:04Z</dc:date>
    <item>
      <title>How to insert to table has an auto increment field with tDBOutput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-to-table-has-an-auto-increment-field-with/m-p/2309959#M81136</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt; 
&lt;P&gt;I have thousand CSV data rows and I want to insert them into a table has an auto increment field, I use:&lt;/P&gt; 
&lt;P&gt;tFileDelimited -&amp;gt; tMap -&amp;gt;&amp;nbsp; tDBOutput&amp;nbsp;&amp;nbsp; But it insert data with wrong columns order&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I print SQL query to console by tJava with ((String)globalMap.get("tPostgresqlOutput_5_QUERY")), then copy the query to Database IDE and excute, it work - insert successful.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What happend with my job ? And How to insert to table has an auto increment field with tDBOutput?&lt;/P&gt; 
&lt;P&gt;Thank all. &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 11:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-to-table-has-an-auto-increment-field-with/m-p/2309959#M81136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-22T11:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert to table has an auto increment field with tDBOutput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-to-table-has-an-auto-increment-field-with/m-p/2309960#M81137</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For auto-increment, you can use a sequence with&amp;nbsp; Numeric.sequence("s1",1,1), you can find it on tmap java editor in category Numeric. But this sequence is only good for an unique use... if your job is re-run , the sequence back to 1 (but you can initialize with the max Numeric.sequence("s1", globalMap.get("MaxRow") ,1) )&amp;nbsp; or someting like that...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if this help you .&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;/P&gt;&lt;P&gt;SGV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 13:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-to-table-has-an-auto-increment-field-with/m-p/2309960#M81137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-22T13:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert to table has an auto increment field with tDBOutput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-to-table-has-an-auto-increment-field-with/m-p/2309961#M81138</link>
      <description>Thank you, it work 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 23 Aug 2017 04:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-to-table-has-an-auto-increment-field-with/m-p/2309961#M81138</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-23T04:20:25Z</dc:date>
    </item>
  </channel>
</rss>

