deletefromtablewhereidnotin(selectmin(id)fromtablegroupby其他字段)
deletefromtablewhererowidnotin(selectmin(rowid)fromtablegroupby分区字段)