I´m working with Mysqlyog for the first time and I have a problem with migration toolkit.
I saw when you select a database you can select the tables and the fields you want to migrate.But in WHERE clause I can´t compare with other fields of other tables in the same database.
For example:
I can do this to migrate the table “table1” WHERE field1=30
But I can do that WHERE table1.field1=30 AND table1.field2=table2.field1
Is it possible to do it with the migration toolkit?How can I do it?
I have to import everyday a table with over 8 million registers, but I don´t need much of them.
Sorry it took a little time to reply where, but nobody remembered full details about this.
There is a limitation in our code here with JOINS (and what you are doing (the construction table1.field2=table2.field1) is actually a “JOIN in the WHERE-clause”).
However if the ODBC-source supports subqueries you can use a subquery in the WHERE-clause. Try replace
I try to make your suggestion but it shows an error.
I write in WHERE clause cod_tar IN (SELECT cod_tar FROM tl_precios) but shows me the message error “[DataDirect][ODBC OPENEDGE driver][OPENEDGE]Syntax error in SQL statement at or about “'tl_tarifas') and 1=0″ (10713)”