Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法使用以下查询从多个 MySQL 表中删除数据;
$rel=$_POST['releaseno']; $sql="DELETE from `tbl_uat`,`tbl_fault` WHERE `tbl_uat`.`release`='$rel' AND `tbl_fault`.`release_no`='$rel'";
我认为查询有问题,请任何人指出问题所在。
亲切的问候
你需要告诉数据库你想从哪些表中删除delete u,f from ...
delete u,f from ...
$rel = mysql_real_escape_string($_POST['releaseno']); DELETE u, f from tbl_uat u, tbl_fault f WHERE u.release = '$rel' AND f.release_no = '$rel'