David wrote:

> I have two tables under the one database.  What is the best way to
> INSERT data into both tables at once.  Can I use one INSERT statement or
> do I have to use two?



Do those tables have exactly same tructure? If you then you do not have 
to insert into two table but use MERGE table type instead when doing 
SELECTs later. I do not know your exact problem but looks like MERGE may 
help.

-- 
For technical support contracts, goto https://order.mysql.com/
    __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Tonu Samuel <[EMAIL PROTECTED]>
  / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Security Administrator
/_/  /_/\_, /___/\___\_\___/   Hong Kong, China
        <___/   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