PHP MySQL ??
DELETE ?? ?????? ????? ?? ???? ? ?????.
??
DELETE FROM table_name
WHERE some_column = some_value
??: DELETE ??? WHERE ?? ?????. WHERE ?? ???? ?? ???? ?????. WHERE ?? ???? ?? ??? ?????!
SQL? ?? ??? ????? SQL ????? ?????.
?? ?
Myguests? ???? ?? ?????.
firstname='Mary' ???? ???????
<?php header("Content-type:text/html;charset=utf-8"); //設(shè)置編碼 $con=mysqli_connect("localhost","root","root","test"); // 檢測(cè)連接 if (mysqli_connect_errno()) { echo "連接失敗: " . mysqli_connect_error(); } mysqli_query($con,"DELETE FROM Myguests WHERE firstname='Mary'"); mysqli_close($con); ?>
???? ??:
???? ???? ?? ???????
???????
【?????】
1. ?? ? ??? where ??? ???? ???. ??? ??? ??? ??? ?????. .
2. ??? ???? ???? ?? ??? ??, ??, ??? ???.