如何使用PHP和MYSQL删除表中的行? with account_name,maintenance_type,ma_status,ma_contract_start,ma_contract_end,ma_reference_no
答案 0 :(得分:2)
DELETE FROM a_table WHERE account_name="someaccountname" AND maintenance_type="whatever" etc...
答案 1 :(得分:0)
答案 2 :(得分:0)
你可以像这样使用它:
<?php
$con = mysql_connect("localhost","username","password");
if (!$con) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db("my_db", $con);
mysql_query("DELETE FROM account_name WHERE SomeField='value'");
mysql_close($con);
?>