MYSQL

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Best way to copy between two databases with the same tables but differentnumber of rows

    1 answers - 696 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi,
    I'm trying to copy between two databases with the same tables, but the
    destination one has a different number of rows.
    I used SQLyog first to create the script with the necessary commands and
    it partially worked after applying it to the second table, but my
    problem is with one of the tables with the same name, in both databases
    and with a different number of rows. when I issue INSERTs from the
    source database, to add the records in the destination, it complains the
    number of rows is different, that's strange so I am looking a way to fix
    this, and this is the first time I am doing it so please advise me.
    Thank you,
    Rick Fitzgerald
  • No.1 | | 844 bytes | |

    axis wrote:
    Hi,

    I'm trying to copy between two databases with the same tables, but the
    destination one has a different number of rows.
    I used SQLyog first to create the script with the necessary commands and
    it partially worked after applying it to the second table, but my
    problem is with one of the tables with the same name, in both databases
    and with a different number of rows. when I issue INSERTs from the
    source database, to add the records in the destination, it complains the
    number of rows is different, that's strange so I am looking a way to fix
    this, and this is the first time I am doing it so please advise me.

    Are you sure it's rows and not fields that are different? That would
    make sense if the number of fields/columns were different, rows
    shouldn't matter.

Re: Best way to copy between two databases with the same tables but differentnumber of rows


max 4000 letters.
Your nickname that display:
In order to stop the spam: 4 + 3 =
QUESTION ON "MYSQL"

EMSDN.COM