标签: php mysql sql-delete
我有一个查询,从MySQL表中删除一行,如果查询如下,则该行完全正常:
$sql = "DELETE FROM table WHERE id = 1"
但是当我添加AND子句时,它不起作用或发出错误:
AND
$sql = "DELETE FROM table WHERE id = 1 AND name='Jack'"
MySQL DELETE不支持AND子句吗?
DELETE
答案 0 :(得分:0)
确实如此。