<?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 Insert Data Using tmysqlrow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Using-tmysqlrow/m-p/2355252#M121052</link>
    <description>&lt;P&gt;&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;My scenario is: XXXXX -&amp;gt; tmap -&amp;gt; tmysqlrow. The output of tmap is row1(Main) which has two columns column1 and column2, now I want to insert column1 and column 2 as well as the curdate() into table1 in my database. How can I achieve it?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;insert into table1(column1, column 2, date) values(select column1, column 2 from '"+row1.????+"', curdate());&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;What should I change? Thanks!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2017 19:20:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-24T19:20:21Z</dc:date>
    <item>
      <title>Insert Data Using tmysqlrow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Using-tmysqlrow/m-p/2355252#M121052</link>
      <description>&lt;P&gt;&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;My scenario is: XXXXX -&amp;gt; tmap -&amp;gt; tmysqlrow. The output of tmap is row1(Main) which has two columns column1 and column2, now I want to insert column1 and column 2 as well as the curdate() into table1 in my database. How can I achieve it?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;insert into table1(column1, column 2, date) values(select column1, column 2 from '"+row1.????+"', curdate());&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;What should I change? Thanks!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 19:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Using-tmysqlrow/m-p/2355252#M121052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T19:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Data Using tmysqlrow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Using-tmysqlrow/m-p/2355253#M121053</link>
      <description>There doesn't seem to be a reason to use tMysqlRow component here. &amp;nbsp;You can create a global variable containing a datestamp at the start of your job using a tSetGlobalVar with value: TalendDate.getDate("yyyy-MM-dd")&lt;BR /&gt;Add a column containing your datestamp to your flow with your tMap and insert with tMysqlOutput.</description>
      <pubDate>Fri, 24 Mar 2017 20:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Using-tmysqlrow/m-p/2355253#M121053</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-03-24T20:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Data Using tmysqlrow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Using-tmysqlrow/m-p/2355254#M121054</link>
      <description>&lt;BLOCKQUOTE&gt;cterenzi wrote:&lt;BR /&gt;There doesn't seem to be a reason to use tMysqlRow component here. &amp;nbsp;You can create a global variable containing a datestamp at the start of your job using a tSetGlobalVar with value: TalendDate.getDate("yyyy-MM-dd")&lt;BR /&gt;Add a column containing your datestamp to your flow with your tMap and insert with tMysqlOutput.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Thanks for your reply. DateStamp will be fine if go with what you said. But for the column1 &amp;amp; column2, I can't find proper way to call those two roles in the insert query since they are not in any tables. Thanks!!!</description>
      <pubDate>Fri, 24 Mar 2017 20:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Using-tmysqlrow/m-p/2355254#M121054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T20:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Data Using tmysqlrow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Using-tmysqlrow/m-p/2355255#M121055</link>
      <description>You don't need GlobalVariable for date, You can use direct&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;TalendDate.getDate("yyyy-MM-dd") in tMySQLRow&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;but in any case - SQL is wrong, it will not work and direct in database&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 24 Mar 2017 21:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Using-tmysqlrow/m-p/2355255#M121055</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-03-24T21:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Data Using tmysqlrow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Using-tmysqlrow/m-p/2355256#M121056</link>
      <description>If you use tMysqlOutput instead, you don't need to write the SQL. Just map the incoming schema to the schema of your table.&amp;nbsp;</description>
      <pubDate>Fri, 24 Mar 2017 21:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-Data-Using-tmysqlrow/m-p/2355256#M121056</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-03-24T21:20:29Z</dc:date>
    </item>
  </channel>
</rss>

