For what it’s worth, and depending on if you’re inserting the same data into
the same tables, it’s much better to insert multiple values with the one insert
e.g.
INSERT INTO a VALUES (1,23),(2,34),(4,33);
INSERT INTO a VALUES (8,26),(6,29);
More Related Contents:
- How to create this type of JSON data from PHP [closed]
- Just using mysql real escape string [closed]
- Create hyperlink from html table row to open record on a new page
- Many-to-many relationships examples
- SELECT COUNT(*) AS count – How to use this count
- How to execute two mysql queries as one in PHP/MYSQL?
- Storing files in database Vs file system
- How to upload images into MySQL database using PHP code
- selecting unique values from a column
- MySQL Join two tables with comma separated values
- how safe are PDO prepared statements
- How to join three table by laravel eloquent model
- Secure files for download
- How to connect to MySQL database in PHP using mysqli extension?
- MySQL – Access denied for user [duplicate]
- Calling stored procedure with Out parameter using PDO
- When *not* to use prepared statements?
- org.json.JSONException: Value
- PHP Check for NULL
- How to display an BLOB image stored in MySql database?
- How to bind LIKE values using the PDO extension?
- How do I set the selected item in a drop down box
- Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock) in
- WordPress Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /wp-includes/wp-db.php:1570
- How to select rows where column value IS NOT NULL using CodeIgniter’s ActiveRecord?
- PHP 7 RC3: How to install missing MySQL PDO
- PHP MySQL pagination with random ordering
- How do I save PHP session data to a database instead of in the file system?
- MySQL, how to insert null dates
- Escaping SQL queries in Codeigniter