可以为我检查此代码吗?我不知道

时间:2019-05-17 17:15:47

标签: php mysql sql-delete jointable multiple-tables

请检查我的代码,因为我已经运行了此代码,但删除失败。谢谢

<?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);?>

0 个答案:

没有答案