<?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 Create tables without knowing the content of a csv in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-tables-without-knowing-the-content-of-a-csv/m-p/2361163#M125593</link>
    <description>&lt;P&gt;Hello, I am new to Talend, and I need to create tables in a database from different CSV files following this model: Table name = File name, Column name = 1st line of my csv , data = the other lines of my CSV. I don't know in advance the number of columns or rows but I need to automate all of this without using dynamic mode. Anyone have an idea how to do this? Thanks in advance !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:21:18 GMT</pubDate>
    <dc:creator>AMarchand1696583542</dc:creator>
    <dc:date>2024-11-15T21:21:18Z</dc:date>
    <item>
      <title>Create tables without knowing the content of a csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-tables-without-knowing-the-content-of-a-csv/m-p/2361163#M125593</link>
      <description>&lt;P&gt;Hello, I am new to Talend, and I need to create tables in a database from different CSV files following this model: Table name = File name, Column name = 1st line of my csv , data = the other lines of my CSV. I don't know in advance the number of columns or rows but I need to automate all of this without using dynamic mode. Anyone have an idea how to do this? Thanks in advance !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-tables-without-knowing-the-content-of-a-csv/m-p/2361163#M125593</guid>
      <dc:creator>AMarchand1696583542</dc:creator>
      <dc:date>2024-11-15T21:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create tables without knowing the content of a csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-tables-without-knowing-the-content-of-a-csv/m-p/2361164#M125594</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The 'Dynamic schema' functionality allows you to create a schema without knowing the number of columns, you can find more details about Dynamic schema in this page. &lt;/P&gt;&lt;P&gt;https://help.talend.com/r/en-US/8.0/studio-user-guide/dynamic-schema&lt;/P&gt;&lt;P&gt;Dynamic schema scenarios.&lt;/P&gt;&lt;P&gt;https://help.talend.com/r/en-US/8.0/dynamic-schema/tsetdynamicschema-tfileinputpositional-tfileoutputpositional-tfixedflowinput-handling-positional-file-based-on-dynamic-schema-standard-component-enterprise-this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: the 'Dynamic schema' feature is only available in Talend Enterprise subscription products. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A simple Job design looks like:&lt;/P&gt;&lt;P&gt;tFileList--iterate--tFileInputDelimited--main--&amp;gt;tMysqlOutput&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Oct 2023 07:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-tables-without-knowing-the-content-of-a-csv/m-p/2361164#M125594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-08T07:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create tables without knowing the content of a csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-tables-without-knowing-the-content-of-a-csv/m-p/2361165#M125595</link>
      <description>&lt;P&gt;Hello shong thanks for your anwser, unfortunatly we don't have enterprise licence ... So i try to find another way to do it&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 06:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-tables-without-knowing-the-content-of-a-csv/m-p/2361165#M125595</guid>
      <dc:creator>AMarchand1696583542</dc:creator>
      <dc:date>2023-10-09T06:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create tables without knowing the content of a csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-tables-without-knowing-the-content-of-a-csv/m-p/2361166#M125596</link>
      <description>&lt;P&gt;@Adrien Marchand​&amp;nbsp;, without dynamic schema, it would be difficult to achieve such needs. You can't use tDBOutput to insert data into Database without knowing the column names. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; My thought is (I haven't try it):&lt;/P&gt;&lt;P&gt;1- Read the first line of CSV file as one line using tFileInputRaw component, write Java code to extract the column names on a tJavaRow and build a create table query based on the column names, and then, execute the create table query using tDBRow component. &lt;/P&gt;&lt;P&gt;tFileInputRaw--main--tJavaRow--oncomponentok--tDBRow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2- Read the file content line by line (skip the first line), iterate each line, write Java code to extract the column values on a tJavaRow and build a insert ... query, execute the insert query using tDBRow component. &lt;/P&gt;&lt;P&gt;tFileInputRaw--main--tFlowToIterate--iterate--tFixedFlowInput--main--tJavaRow--oncomponentok--tDBRow. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 03:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-tables-without-knowing-the-content-of-a-csv/m-p/2361166#M125596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-10T03:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create tables without knowing the content of a csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-tables-without-knowing-the-content-of-a-csv/m-p/2361167#M125597</link>
      <description>&lt;P&gt;Thank you, I will try it.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 07:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-tables-without-knowing-the-content-of-a-csv/m-p/2361167#M125597</guid>
      <dc:creator>LHall1681108134</dc:creator>
      <dc:date>2023-10-17T07:20:52Z</dc:date>
    </item>
  </channel>
</rss>

