Forum Replies Created
-
AuthorPosts
-
peterlaursen
ParticipantIf you still have free upgrades (if you purchased less than a year ago) please use our Customer Portal. Use the email used for purchase as the ID for login.
If this is not possible for some reason of if you purchased more that a year ago, please create a support ticket here: http://www.webyog.com/support/ttx.cgi
(we will not discuss private details in a public Forum).
peterlaursen
Participant1) “If the MERGE table has no Primary Key, then why is SqlYog relying on that key and that key alone to update the edited row?” It is not as there is no PK in the MERGE table. The WHERE lists all columns for same reason.
2) “Only 1 row gets updated in my Merge table”. And what is the UPDATE statement from HISTORY?
3) “my non-disclosure agreement prevents me from publishing it”. Then please try to create a 'dummy' reproducible test case.
4) “to include all unique index values”. The problem is that the MERGE table has no information that this column is unique in another (MyISAM) table. Did I miss something?
5) “SqlYog shouldn't depend on the primary key alone”. Primary Key (or unique key on non-NULLable columns) is a unique identification of records. That is the purpose of it really. But besides the MERGE table does not have a PK, so there is no such to use.
6) To manage INSERTS MySQL provides a mean: (refer: http://dev.mysql.com…e-engine.html)
“You can optionally specify an INSERT_METHOD option to control how inserts into the MERGE table take place. Use a value of FIRST or LAST to cause inserts to be made in the first or last underlying table, respectively. If you specify no INSERT_METHOD option or if you specify it with a value of NO, inserts into the MERGE table are disallowed and attempts to do so result in an error. But no such server side functionality exists for update”
I think the best solution would be to ALTER the underlying tables. Instead of having a PK on an auto-increment column only consider creating a PK based on two columns: the existing one + one more column that is constant in each table but different across tables. That will ensure that even all rows in the MERGE table are unique.
peterlaursen
ParticipantLet me reply to the last question first. This error is returned from the ODBC driver – not from SQLyog.
We will provide more guidance on where to find the options in the wizard. However you should be able to specify a *folder*and all supported files in the folder will be recognized as tables
peterlaursen
Participant“SqlYog will update the first table in the Merge table that has the same AutoInc value as the row I am editing.” Well .. It is the MySQL server that does. To continue Khusboo's example:
The MERGE table has no Primary Key and thus SQLyog will generate an update statement like
Code:UPDATE `merge`.`table_merge` SET `message`='blah' WHERE `a`='1' AND `message`='Testing';next this message will appear
[attachment=1339:more rows.jpg] .. and that is also what happens: 2 rwos will update
Please always paste you *exact* table definitions. Nothing more and nothing less!
But I think you can forget about any idea that we should consider another table when updating one table. Then every user will have some special situation that we will have to consider and everything will soon be total mess.
General advice on how to use MERGE tables is and always was to INSERT, UPDATE and DELETE from the underlying tables and SELECT from the MERGE table.
Additionally if you encounter failure to update please read:
http://www.webyog.com/faq/content/29/162/en/tables-with-floating-point-datatypes-fail-to-update.html
February 23, 2010 at 4:04 am in reply to: Don't Understand How One Update In One Row Will Affect Multiple Ro #30516peterlaursen
ParticipantIt is explained here:
.. so the WHERE clause mathes that number of rows. To comment further will will need the CREATE statements for the tables as well as the (JOIN-)query you are referrring to.
BTW: Instead of verbose explain it is most often better to paste the SQL – it is non-ambigious and can even be imported/executed at our end.
February 22, 2010 at 6:29 am in reply to: Sqlyog Disappears In Taskmanager When Viewing A 'large' Table #30423peterlaursen
ParticipantWe know that it will crash if you display more than available memory allows for. There is no change in this respect between 5.3 beta and previous releases. But you do have an option to do page-wise display in both DATA and RESULT tab and that is what we recommend.
Further action here is not priority for us at the moment.
peterlaursen
ParticipantI tried 8.22 and the latest beta. None of them 'grey out' the Object Browser while executing a query. It should not either.
Can you elaborate, please?
peterlaursen
ParticipantAlso you may try to write the UPDATE statement yourself. Does it make any difference?
peterlaursen
ParticipantI do not know what SQLyog version you are using, but since version 8.2 there is an option to apply settings to all tables with a single click. This was actually implemented first of all to make it easy to import a large number of CSV's from one folder in one operation
The settings you need to use are basically to 'import into existing table' and 'dont overwrite'. Then data for each CSV will be appended to the same table (the text ODBC-driver identifies a file of supported type as a 'table').
Did this help?
February 18, 2010 at 4:03 am in reply to: User Who Can Perform Selects But Not Expand The Object Browser For A D #30496peterlaursen
Participant“Is there a way to limit the user to not being able to see individual tables in a database but still be able to perform selects on them or to disable the object browser expanding for a database?”. It does not look so. I created a user defined as “GRANT SELECT ON *.* TO 'blah'@'localhost'” (note no “SHOW DB” privilge). And SHOW DATABASES, SHOW FULL TABLES etc. returns everything.
Second question will depend much on what storage engine you use. There are 3 files for every MyISAM tables. Hundred of thousands of open file handles will cause problems for any OS and the table cache will swap a lot I think. I think you should read this discussion: http://forums.mysql.com/read.php?21,52647,153433#msg-153433
peterlaursen
ParticipantThe dump can only be used if you have the source code and same Visual Studio version on which the program was compiled. It will have to be loaded into the VS debugging module. So please attach it here (or create a ticket). It has no inforamtion about data – only internal state of pointers, buffers and such.
Also please try a recent version if your version is old. And tell some details about the ODBC source (what database system?, what datatypes used etc.).
peterlaursen
ParticipantAnd besides I will move you to the SQLyog category!
peterlaursen
ParticipantOne thing you could try is to dump, 'search and replace' in an editor and import again.
However problems that may occur are:
1) dump may be too big for an editor (take one table at a time). I know that Ultraedit for instance handles very big files without being unacceptable slow.
2) if you have binary data (BLOBs) then
* such characters may occur in the textual display of such BLOB so here you should not 'search and replace' them of course.
* some editors may garble HEX patterns that are not valid UTF8. With SQLyog Enterprise/Ultimate the 'scheduled backup' has an option to set the encoding of the dump. Make it latin1 (ANSI) for this special purpose – not utf8, as all HEX patterns are valid in ANSI.
* some editors may truncate long BLOB/TEXT/bulk inserts
— so be careful – do not drop the original tables before you are sure that it is OK! For instance you could 'duplicate table', next export-edit-import the duplicate. Now rename the original and rename the duplicate to the original name.
peterlaursen
ParticipantI still don't know what options the ip-phone system has for interfacing with other programs so it is hard to tell if it is realistic. Adding the context menu item based on some condition is not hard.
But still you should not expect us to take any such initiative. We are providing standardized software – we are not providing customized solutions.
peterlaursen
Participant“I am very curious, how “you” make a fast filter on 1,297,342 last names (= 1 column).”
Well … do you have an index on `lastname` column? If not the server will need to do a full table scan.
If you EXPLAIN that SELECT what is the return in 'possible index' and 'index used' columns.
But maybe I did not understand?
-
AuthorPosts