MySQL Forums
Forum List  »  General

maximum length of INSERT query string?
Posted by: Florin Andrei
Date: July 11, 2007 05:49PM

I am doing an INSERT with multiple rows:

INSERT INTO tbl_name (a,b,c) VALUES(1,2,3),(4,5,6),(7,8,9) ....

The INSERT statement is generated by a PHP script.
What is the maximum length allowed for this string? I.e., how do I know when to stop adding more rows?
Is this related to any of the following variables?

max_allowed_packet
bulk_insert_buffer_size
key_buffer_size

I am using MySQL-5.0.22 and PHP-5.1.6 on Linux CentOS 5 x86_64

--
Florin Andrei

http://florin.myip.org/

Options: ReplyQuote


Subject
Written By
Posted
maximum length of INSERT query string?
July 11, 2007 05:49PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.