如何在php中使用mysqli中的mysql语句"UNLOCK TABLES“?我不能仅仅通过使用分号将它放在现有语句的末尾,这样做我会遇到错误。这是我试图做的“更新废话;解锁表;”然后我试图执行它,但它不起作用。有什么想法吗?
发布于 2015-09-18 08:56:03
$mysqli->query("UPDATE blah blah");
$mysqli->query("UNLOCK TABLES");发布于 2015-09-18 08:57:59
$connection = new mysqli($host, $user, $password, $database);
$sql = "UPDATE blah blah";
$stmt = $connection->prepare($sql);
$stmt->execute();
$stmt->close();
mysqli_query($connection , "UNLOCK TABLES;");https://stackoverflow.com/questions/32642229
复制相似问题