Fred,
Monday, June 10, 2002, 2:22:25 PM, you wrote:

FK> I have two databases on one MySql sever and I would like to transfer 
FK> certain information from one databases to another.  I want to transfer, 
FK> record by record, from a particular table, after examining the record.  How 
FK> can I open the two databases at the same time?
FK> The only way I am able to do this is by

FK> 1. opening one database -
FK> 2. read a record from a particular table -
FK> 3. close the database -
FK> 4. examine the records -
FK> 5. open the other database -
FK> 6. save information and close.

FK> 7. repeat the process for all the records.

FK> I am worried that this may be in efficient.  It there another I could do it?

You can specify database name in SQL statement, f.e.
    INSERT database1.table1 SELECT * FROM database2.table2 WHERE ... ;

It will work if your databases are located on the same MySQL server
(in one MySQL data dir).

FK> Fred Kamwaza




-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to