1.Delete 操作
DELETE p1 FROM Person p1,Person p2
WHERE
p1.Email = p2.Email AND p1.Id > p2.Id
多表删除的语法规则:
delete后必须带要删除的表别名,
where后带多表关联关系和删除条件
2. Date_Add
date_add(w2.recordDate,interval 1 Day)
date_sub(w2.recordDate,interval 1 Day)
日期增加减少
1.Delete 操作
DELETE p1 FROM Person p1,Person p2
WHERE
p1.Email = p2.Email AND p1.Id > p2.Id
多表删除的语法规则:
delete后必须带要删除的表别名,
where后带多表关联关系和删除条件
2. Date_Add
date_add(w2.recordDate,interval 1 Day)
date_sub(w2.recordDate,interval 1 Day)
日期增加减少