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'";
クエリに問題があると思います。問題の場所を特定してください。
敬具
次のようにして、削除するテーブルをDBに伝える必要があります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'