run multiple sql commands at once
$query = "SQL Code";
$query .= "SQL Code";
//execute query
if($result = mysqli_multi_query($conn, $query))
{
echo "DONE!";
}else{
echo "Something went wrong :(";
}
run multiple sql commands at once
$query = "SQL Code";
$query .= "SQL Code";
//execute query
if($result = mysqli_multi_query($conn, $query))
{
echo "DONE!";
}else{
echo "Something went wrong :(";
}
Running multiple queries at same time
var pool = mysql.createPool({
connectionLimit : 10,
host : 'example.org',
user : 'bobby',
password : 'pass',
database : 'schema'
});
for(var i=0;i<10;i++){
pool.query('SELECT ` as example', function(err, rows, fields) {
if (err) throw err;
console.log(rows[0].example); //Show 1
});
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us