Andrew,
Wednesday, October 16, 2002, 10:52:37 PM, you wrote:

AH> I need to be able to insert many rows into a table at once.  Only one
AH> field, an incremental serial number will change for each row.  Is there
AH> a way to do that in a single query? I need to be able to specify the
AH> start and end points (i.e. start at 599999 and end at 605000) Or do I
AH> have to put the query in a for_next loop and let the webserver churn
AH> away on it?

If you want to insert many rows with one statement, use extended
INSERT, i.e.
        INSERT INTO table_name VALUES
        (NULL, ....),
        
        ............

        (NULL, ....);

But you should be careful, because MySQL client sends statement and
all data in this case in one packet.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ma02-010c
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [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