请检查我的代码,因为我已经运行了此代码,但删除失败。谢谢
<?php
include('connnn.php');
session_start();
$terminalid=$_GET['terminal_id'];
$sql="DELETE ab, b FROM terminal AS a INNER JOIN terminalfrom AS ab ON a.terminal_id=ab.terminal_id
INNER JOIN terminalto AS b ON ab.terminalto_id=b.terminalto_id WHERE terminal_id='$terminalid'";
$deleteQuery=mysqli_query($connnn,$sql);?>