/*主表数据*/ delimiter $$ DELETE FROM tFrmEnum WHERE EnumType='#ENUMTYPE'; #MASTER /*从表数据*/ DELETE FROM tFrmEnumValue WHERE EnumType='#ENUMTYPE'; #DETAIL Commit; $$