出于某种原因,我想使用php mysql查询功能删除我表中的一些记录.这是我写的
$sql = "delete from progress where first_date='2010-01-01' and last_date='2010-01-31';
delete from progress where first_date='2010-02-01' and last_date='2010-02-28';
delete from progress where first_date='2010-03-01' and last_date='2010-02-31';
delete from progress where first_date='2010-04-01' and last_date='2010-02-30';
delete from progress where first_date='2010-05-01' and last_date='2010-02-31';";
if(!mysql_query($sql)) echo "Error deleting records";
Run Code Online (Sandbox Code Playgroud)
这正是我得到的,"错误删除记录".但是当使用mysql_error()进行它时,它毕竟没用.任何人都知道如何处理这个?谢谢之前
| 归档时间: |
|
| 查看次数: |
2895 次 |
| 最近记录: |