In order to run a query for database MySQL, we are using mysqli_query. Then, for running a query for database Oracle, we are using oci_execute.
When we wish to running multiple query for database MySQL, we are using mysqli_multi_query. Example as below:-
$mysqliconn = mysqliconn(); //mysqli connection
$sql = '
INSERT INTO TABLE VALUES();
INSERT INTO TABLE VALUES();
INSERT INTO TABLE VALUES();
INSERT INTO TABLE VALUES();
';
if(mysqli_multi_query($mysqliconn, $sql)) {
echo 'Success';
}
My Question is if there anyone of you whom can come out with the most simplest solution to run multiple inserting values into the database table using one command execution.
INSERT INTO table VALUES (), (), ();