我想在单个语句中运行多个查询如何执行此操作。
你必须使用 mysqli 而不是 mysql。
请参考以下内容
http://php.net/manual/en/book.mysqli.php
http://php.net/manual/en/mysqli.multi-query.php