你好 ichen,
kann ich in einem mysql_query(); mehrere anweisungen an eine
mysqldatenbank versenden?
Wenn MySQL 4.1 benutzt wird: prinzipiell ja, du musst mysql_connect() nur
den richtigen Flag mitgeben. Alles < MySQL 4.1: nein, geht nicht.
zum beistpiel 3 inserts.
Das geht mit mehrfachen Werte-Listen. Aus
http://dev.mysql.com/doc/mysql/en/insert-speed.html:
You can use the following methods to speed up inserts:
* If you are inserting many rows from the same client at the same time, use INSERT statements with multiple VALUES lists to insert several rows at a time. This is much faster (many times faster in some cases) than using separate single-row INSERT statements. If you are adding data to a non-empty table, you may tune the bulk_insert_buffer_size variable to make it even faster. See Section 5.2.3, “Server System Variables”.
再见,
CK
Beware Evildoers for my deed is done and every little damsel in distress will be shelted!
http://wwwtech.de/