If I have a bunch of queries(mysql) in PHP, assuming that i'm using PDO, these queries will be executed in sequence, but PHP or MySQL will wait one query to finish before start a new one?
$sql1 = $con->prepare("some query");
$sql2 = $con->prepare("some query");
$sql3 = $con->prepare("some query");
$sql1->execute();
$sql2->execute();
$sql3->execute();
And if I use a transactional block in PDO with the same queries:
$con->beginTransaction();
Will the execution be the same?