0
我有3個MySQL查詢運行包裝MySQL的交易
mysql_query("create temporary table here ");
mysql_query("UPDATE Statement goes here ");
mysql_query("DROP temporary table here ") or die(mysql_error())
我如何在一個事務中包裝嗎?
我有3個MySQL查詢運行包裝MySQL的交易
mysql_query("create temporary table here ");
mysql_query("UPDATE Statement goes here ");
mysql_query("DROP temporary table here ") or die(mysql_error())
我如何在一個事務中包裝嗎?
你不知道。 DDL語句(如create temporary table here
)絕對不是MySQL中事務的一部分。
+1 ...... [這裏DDL語句列表](http://dev.mysql.com/doc/refman/5.5/en/implicit-commit.html) – ManseUK