<?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: Migrating data in tables with foreign keys and auto-increment in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Migrating-data-in-tables-with-foreign-keys-and-auto-increment/m-p/2336391#M104840</link>
    <description>Easiest way is to load the User and Application tables and then read them back as lookups to tMap to load the Record table. Otherwise, see 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCrIUCA0" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/MySQL-Childen-insert-after-Parent-insert-with-parent-sequence/td-p/114799&lt;/A&gt;.</description>
    <pubDate>Thu, 12 Sep 2013 15:41:13 GMT</pubDate>
    <dc:creator>alevy</dc:creator>
    <dc:date>2013-09-12T15:41:13Z</dc:date>
    <item>
      <title>Migrating data in tables with foreign keys and auto-increment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-data-in-tables-with-foreign-keys-and-auto-increment/m-p/2336389#M104838</link>
      <description>We are going to migrate data from MS Access to MySQL.&lt;BR /&gt;The MS Acess table schema:&lt;BR /&gt;Table User&lt;BR /&gt;ID    Name    Sex&lt;BR /&gt;Table Record&lt;BR /&gt;ID   MAINID  Seq   APPID   Name&lt;BR /&gt;Table Application&lt;BR /&gt;ID   Name&lt;BR /&gt;Record.MAINID is the foreign key to User.ID&lt;BR /&gt;Record.APPID is the foreign key to Application.ID&lt;BR /&gt;The MySQL table schema:&lt;BR /&gt;Table User&lt;BR /&gt;keyid                           name            sex&lt;BR /&gt;(autoincrement)&lt;BR /&gt;Table Record&lt;BR /&gt;keyid                           userid           applicationid            name&lt;BR /&gt;(autoincrement)&lt;BR /&gt; &lt;BR /&gt;Table Application&lt;BR /&gt;keyid                           name&lt;BR /&gt;(autoincrement)&lt;BR /&gt;Record.userid is the foreign key to User.keyid&lt;BR /&gt;Record.applicationid is the foreign key to Application.keyid&lt;BR /&gt;I create 3 FileInputs and 3 MySqlOutputs to migrate data to table User, Application and Record, one by one, by trigger onSubjobOK. But when migrating the data in Table Record, I cannot find the autoincrement keyid values in Table Application and User to map to userid and applicationid fields in Table Record.</description>
      <pubDate>Wed, 11 Sep 2013 10:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-data-in-tables-with-foreign-keys-and-auto-increment/m-p/2336389#M104838</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-09-11T10:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating data in tables with foreign keys and auto-increment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-data-in-tables-with-foreign-keys-and-auto-increment/m-p/2336390#M104839</link>
      <description>Hi, &lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;I create 3 FileInputs and 3 MySqlOutputs to migrate data to table User, Application and Record, one by one, by trigger onSubjobOK. But when migrating the data in Table Record, I cannot find the autoincrement keyid values in Table Application and User to map to userid and applicationid fields in Table Record.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;For auto-increment id, you can set Var in &lt;A href="https://help.talend.com/search/all?query=tMap&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tMap&lt;/A&gt; to get a Numeric.sequence.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 12 Sep 2013 07:58:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-data-in-tables-with-foreign-keys-and-auto-increment/m-p/2336390#M104839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-12T07:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating data in tables with foreign keys and auto-increment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Migrating-data-in-tables-with-foreign-keys-and-auto-increment/m-p/2336391#M104840</link>
      <description>Easiest way is to load the User and Application tables and then read them back as lookups to tMap to load the Record table. Otherwise, see 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCrIUCA0" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/MySQL-Childen-insert-after-Parent-insert-with-parent-sequence/td-p/114799&lt;/A&gt;.</description>
      <pubDate>Thu, 12 Sep 2013 15:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Migrating-data-in-tables-with-foreign-keys-and-auto-increment/m-p/2336391#M104840</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-09-12T15:41:13Z</dc:date>
    </item>
  </channel>
</rss>

