<?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: tMySQLOutput Update problem in Installing and Upgrading</title>
    <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398584#M8987</link>
    <description>Thank you. 
&lt;BR /&gt;Project details : 
&lt;BR /&gt;I try to bring data from temporary database into statistical database (both are under MySQL 5). 
&lt;BR /&gt;Into temporary space, I just import fields since last transaction. Then, I update statistical space using preceding data. 
&lt;BR /&gt;You can find a pic of my job here : 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt;If necessary I can post tMap print screen.</description>
    <pubDate>Thu, 19 Jul 2007 14:50:00 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2007-07-19T14:50:00Z</dc:date>
    <item>
      <title>tMySQLOutput Update problem</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398582#M8985</link>
      <description>Hi, 
&lt;BR /&gt;I have a problem using tMySQLOutput component : I make a transformation with tMap component. On differents Outputs, I want to update data or insert if they are non-existent. One of them generate an error when data with same primary key values are already inserted : 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job Job5a at 14:54 19/07/2007.&lt;BR /&gt; connecting to socket on port 4321&lt;BR /&gt; connected&lt;BR /&gt;Exception in component tMysqlOutput_5&lt;BR /&gt;Exception in component tMysqlOutput_5&lt;BR /&gt;com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE ID_NUM_NATIONAL=9 AND ID_NUM_NATIONAL_2=9' at line 1&lt;BR /&gt;	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)&lt;BR /&gt;	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)&lt;BR /&gt; disconnected&lt;BR /&gt;	at java.lang.reflect.Constructor.newInstance(Unknown Source)&lt;BR /&gt;	at com.mysql.jdbc.Util.handleNewInstance(Util.java:353)&lt;BR /&gt;	at com.mysql.jdbc.Util.getInstance(Util.java:336)&lt;BR /&gt;	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1031)&lt;BR /&gt;	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)&lt;BR /&gt;	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2938)&lt;BR /&gt;	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1601)&lt;BR /&gt;	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1710)&lt;BR /&gt;	at com.mysql.jdbc.Connection.execSQL(Connection.java:2436)&lt;BR /&gt;	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1402)&lt;BR /&gt;	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1694)&lt;BR /&gt;	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1608)&lt;BR /&gt;	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1593)&lt;BR /&gt;	at pmi_stat.job5a.Job5a.tMysqlInput_1Process(Job5a.java:5503)&lt;BR /&gt;	at pmi_stat.job5a.Job5a.tFileList_1Process(Job5a.java:464)&lt;BR /&gt;	at pmi_stat.job5a.Job5a.main(Job5a.java:9098)&lt;BR /&gt;Job Job5a ended at 14:54 19/07/2007. &lt;/PRE&gt; 
&lt;BR /&gt;Why does the job stops ? 
&lt;BR /&gt;What's the difference betwween "insert or update" and "update or insert" ? 
&lt;BR /&gt;Thank you.</description>
      <pubDate>Sat, 16 Nov 2024 14:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398582#M8985</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T14:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: tMySQLOutput Update problem</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398583#M8986</link>
      <description>can't help you for your error, we need more info about what you are actually doing. 
&lt;BR /&gt;But the difference between update or insert and insert or update is the following : 
&lt;BR /&gt;update or insert : Will first try to update, if it can't (because record doesn't exist), it will try to insert. 
&lt;BR /&gt;insert or update : Will first try to insert, if records already exists (primary key already exists), it will try to update the record.</description>
      <pubDate>Thu, 19 Jul 2007 14:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398583#M8986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-19T14:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: tMySQLOutput Update problem</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398584#M8987</link>
      <description>Thank you. 
&lt;BR /&gt;Project details : 
&lt;BR /&gt;I try to bring data from temporary database into statistical database (both are under MySQL 5). 
&lt;BR /&gt;Into temporary space, I just import fields since last transaction. Then, I update statistical space using preceding data. 
&lt;BR /&gt;You can find a pic of my job here : 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt;If necessary I can post tMap print screen.</description>
      <pubDate>Thu, 19 Jul 2007 14:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398584#M8987</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2007-07-19T14:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: tMySQLOutput Update problem</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398585#M8988</link>
      <description>Hi,&lt;BR /&gt;I can't answer you,&lt;BR /&gt;but just a question:&lt;BR /&gt;how do you display the green statistics ?&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 19 Jul 2007 15:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398585#M8988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-19T15:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: tMySQLOutput Update problem</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398586#M8989</link>
      <description>Hi, into "Run" tab you just have to check "Statistics" box.</description>
      <pubDate>Thu, 19 Jul 2007 15:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398586#M8989</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2007-07-19T15:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: tMySQLOutput Update problem</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398587#M8990</link>
      <description>Slum, 
&lt;BR /&gt;Update is done on the key selected in the schema of the tMySQLOutput_5 
&lt;BR /&gt;Is she well setted ? 
&lt;BR /&gt;Concerning "Insert or update" and "Update or insert" options, they will have exactly the same results. 
&lt;BR /&gt;But you can choose between them for better performance if you know your process. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Michaël.</description>
      <pubDate>Thu, 19 Jul 2007 22:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398587#M8990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-19T22:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: tMySQLOutput Update problem</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398588#M8991</link>
      <description>Hi Mhirt, 
&lt;BR /&gt;I have two keys into tMySQLOutput. How can I avoid my problem ? 
&lt;BR /&gt;Here's a pic of tMap : 
&lt;BR /&gt; 
&lt;A href="http://img101.imageshack.us/my.php?image=jobea0.jpg" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/A&gt; 
&lt;BR /&gt;It's really strange ; it works fine for others link but not for this one. Even if it's the same architecture.</description>
      <pubDate>Fri, 20 Jul 2007 07:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398588#M8991</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2007-07-20T07:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: tMySQLOutput Update problem</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398589#M8992</link>
      <description>That's exactly your problem : if you have two columns and if all of them are keys, you have nothing to update... 
&lt;BR /&gt;Imagine two columns : x and y 
&lt;BR /&gt;if x='a' and y='b' in flow. 
&lt;BR /&gt;If x is key in TOS : generated request will be "update table myTable set y='b' where x='a'" 
&lt;BR /&gt;If y is key in TOS : generated request will be "update table myTable set x='a' where y='b'" 
&lt;BR /&gt;but if x and y are keys, what would you like the request to be ? "update table myTable set x='a' and y='b" where x='a' and y='b'" ? 
&lt;BR /&gt;This won't change anything in the db and might be considered as a business error. 
&lt;BR /&gt;That's why we have chose to generate "update table myTable set where x='a' and y='b'" which generates an error... !!! 
&lt;BR /&gt;Hope it helps, 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Michaël.</description>
      <pubDate>Fri, 20 Jul 2007 23:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398589#M8992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-20T23:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: tMySQLOutput Update problem</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398590#M8993</link>
      <description>I have deleted primary keys and now it works.&lt;BR /&gt;Thank you for your support.</description>
      <pubDate>Mon, 23 Jul 2007 10:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398590#M8993</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2007-07-23T10:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: tMySQLOutput Update problem</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398591#M8994</link>
      <description>Hello together, 
&lt;BR /&gt;this is a very old post but very actual for me... 
&lt;BR /&gt;I've a table with two columns, both keys. Removing primary keys is not a solution for me. I changed the Action on data to "Insert", but now I get a long list of duplicated keys. Is there a way to suppress them without loading the data into memory (=&amp;gt; join in tMap)? 
&lt;BR /&gt;Bye 
&lt;BR /&gt;Volker</description>
      <pubDate>Tue, 26 Feb 2008 13:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398591#M8994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-26T13:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: tMySQLOutput Update problem</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398592#M8995</link>
      <description>Hello Volker, 
&lt;BR /&gt;Since 2.3.0, db output components have a "field option" in Advanced Settings configuration.
&lt;BR /&gt;In this table, you can choose some different keys in update.
&lt;BR /&gt;This will also allow you to generate all update request you might want.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Mike.</description>
      <pubDate>Tue, 26 Feb 2008 21:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398592#M8995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-26T21:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: tMySQLOutput Update problem</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398593#M8996</link>
      <description>Hello Mike,
&lt;BR /&gt;thanks for the information. It works (even if I do not understand it) with "Key in update" and "Updatable".
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
      <pubDate>Wed, 27 Feb 2008 07:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMySQLOutput-Update-problem/m-p/2398593#M8996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-27T07:09:16Z</dc:date>
    </item>
  </channel>
</rss>

