<?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 TmysqlRow select based on inputs in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TmysqlRow-select-based-on-inputs/m-p/2305238#M76922</link>
    <description>Hi
&lt;BR /&gt;I have a delimited file containing an email address and an id.
&lt;BR /&gt;I want to run the following
&lt;BR /&gt;select user_id form users where email like '%inputrow.email%' and id != inputrow.id
&lt;BR /&gt;I enter this statement into a tmysqlrow I expect to be able to set the inputs to this component as 
&lt;BR /&gt;email and id and the outputs as user_id but the component requires the inputs and outputs to be identical.
&lt;BR /&gt;Can the tmysqlRow select based on input values rather than hard coded values?
&lt;BR /&gt;I tried to do this using a prepared Statement in the tmysqlrow but the %% caused a problem.
&lt;BR /&gt;Thanks</description>
    <pubDate>Wed, 03 Jul 2013 10:18:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-07-03T10:18:28Z</dc:date>
    <item>
      <title>TmysqlRow select based on inputs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TmysqlRow-select-based-on-inputs/m-p/2305238#M76922</link>
      <description>Hi
&lt;BR /&gt;I have a delimited file containing an email address and an id.
&lt;BR /&gt;I want to run the following
&lt;BR /&gt;select user_id form users where email like '%inputrow.email%' and id != inputrow.id
&lt;BR /&gt;I enter this statement into a tmysqlrow I expect to be able to set the inputs to this component as 
&lt;BR /&gt;email and id and the outputs as user_id but the component requires the inputs and outputs to be identical.
&lt;BR /&gt;Can the tmysqlRow select based on input values rather than hard coded values?
&lt;BR /&gt;I tried to do this using a prepared Statement in the tmysqlrow but the %% caused a problem.
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 03 Jul 2013 10:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TmysqlRow-select-based-on-inputs/m-p/2305238#M76922</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-03T10:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: TmysqlRow select based on inputs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TmysqlRow-select-based-on-inputs/m-p/2305239#M76923</link>
      <description>Hi 
&lt;BR /&gt;We usually use tMysqlInput to execute a select query, you have to use a 
&lt;A href="https://help.talend.com/search/all?query=tParseRecordSet&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tParseRecordSet&lt;/A&gt; after tMysqlRow to parse the record set if you use tMysqlRow to execute a select query. For your problem, you can write a query like
&lt;BR /&gt;"select user_id form users where email like '%" row1.email "%' and id !=" row1.id
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 03 Jul 2013 10:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TmysqlRow-select-based-on-inputs/m-p/2305239#M76923</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-03T10:41:11Z</dc:date>
    </item>
  </channel>
</rss>

