select id, bs_manage_tags, ranch_id, dr_ranch, sheepfold_id, sheepfold_name, electronic_tags, variety_id, variety, family, name, gender, birthday, day_age, month_age, parity, birth_weight, weaning_date, status_id, weaning_weight, current_weight, breed_status_id, breed, bs_father_id, father_manage_tags, bs_mother_id, mother_manage_tags, receptor_id, receptor_manage_tags, father_father_id, grandfather_manage_tags, father_mother_id, grandmother_manage_tags, father_id, maternal_grandfather_manage_tags, mother_id, maternal_grandmother_manage_tags, mating_date, mating_type_id, preg_date, lambing_date, lambing_day, mating_day, gestation_day, expected_date, post_lambing_day, lactation_day, anestrous_day, mating_counts, mating_total, miscarriage_counts, comment, controlled, body, breast, source, source_date, source_ranch_id, source_ranch, update_by, update_time, create_by, create_time, is_delete from sheep_file insert into sheep_file id, bs_manage_tags, ranch_id, dr_ranch, sheepfold_id, sheepfold_name, electronic_tags, variety_id, variety, family, name, gender, birthday, day_age, month_age, parity, birth_weight, weaning_date, status_id, weaning_weight, current_weight, breed_status_id, breed, bs_father_id, father_manage_tags, bs_mother_id, mother_manage_tags, receptor_id, receptor_manage_tags, father_father_id, grandfather_manage_tags, father_mother_id, grandmother_manage_tags, father_id, maternal_grandfather_manage_tags, mother_id, maternal_grandmother_manage_tags, mating_date, mating_type_id, preg_date, lambing_date, lambing_day, mating_day, gestation_day, expected_date, post_lambing_day, lactation_day, anestrous_day, mating_counts, mating_total, miscarriage_counts, comment, controlled, body, breast, source, source_date, source_ranch_id, source_ranch, update_by, update_time, create_by, create_time, is_delete, #{id}, #{bsManageTags}, #{ranchId}, #{drRanch}, #{sheepfoldId}, #{sheepfoldName}, #{electronicTags}, #{varietyId}, #{variety}, #{family}, #{name}, #{gender}, #{birthday}, #{dayAge}, #{monthAge}, #{parity}, #{birthWeight}, #{weaningDate}, #{statusId}, #{weaningWeight}, #{currentWeight}, #{breedStatusId}, #{breed}, #{bsFatherId}, #{fatherManageTags}, #{bsMotherId}, #{motherManageTags}, #{receptorId}, #{receptorManageTags}, #{fatherFatherId}, #{grandfatherManageTags}, #{fatherMotherId}, #{grandmotherManageTags}, #{fatherId}, #{maternalGrandfatherManageTags}, #{motherId}, #{maternalGrandmotherManageTags}, #{matingDate}, #{matingTypeId}, #{pregDate}, #{lambingDate}, #{lambingDay}, #{matingDay}, #{gestationDay}, #{expectedDate}, #{postLambingDay}, #{lactationDay}, #{anestrousDay}, #{matingCounts}, #{matingTotal}, #{miscarriageCounts}, #{comment}, #{controlled}, #{body}, #{breast}, #{source}, #{sourceDate}, #{sourceRanchId}, #{sourceRanch}, #{updateBy}, #{updateTime}, #{createBy}, #{createTime}, #{isDelete}, update sheep_file bs_manage_tags = #{bsManageTags}, ranch_id = #{ranchId}, dr_ranch = #{drRanch}, sheepfold_id = #{sheepfoldId}, sheepfold_name = #{sheepfoldName}, electronic_tags = #{electronicTags}, variety_id = #{varietyId}, variety = #{variety}, family = #{family}, name = #{name}, gender = #{gender}, birthday = #{birthday}, day_age = #{dayAge}, month_age = #{monthAge}, parity = #{parity}, birth_weight = #{birthWeight}, weaning_date = #{weaningDate}, status_id = #{statusId}, weaning_weight = #{weaningWeight}, current_weight = #{currentWeight}, breed_status_id = #{breedStatusId}, breed = #{breed}, bs_father_id = #{bsFatherId}, father_manage_tags = #{fatherManageTags}, bs_mother_id = #{bsMotherId}, mother_manage_tags = #{motherManageTags}, receptor_id = #{receptorId}, receptor_manage_tags = #{receptorManageTags}, father_father_id = #{fatherFatherId}, grandfather_manage_tags = #{grandfatherManageTags}, father_mother_id = #{fatherMotherId}, grandmother_manage_tags = #{grandmotherManageTags}, father_id = #{fatherId}, maternal_grandfather_manage_tags = #{maternalGrandfatherManageTags}, mother_id = #{motherId}, maternal_grandmother_manage_tags = #{maternalGrandmotherManageTags}, mating_date = #{matingDate}, mating_type_id = #{matingTypeId}, preg_date = #{pregDate}, lambing_date = #{lambingDate}, lambing_day = #{lambingDay}, mating_day = #{matingDay}, gestation_day = #{gestationDay}, expected_date = #{expectedDate}, post_lambing_day = #{postLambingDay}, lactation_day = #{lactationDay}, anestrous_day = #{anestrousDay}, mating_counts = #{matingCounts}, mating_total = #{matingTotal}, miscarriage_counts = #{miscarriageCounts}, comment = #{comment}, controlled = #{controlled}, body = #{body}, breast = #{breast}, source = #{source}, source_date = #{sourceDate}, source_ranch_id = #{sourceRanchId}, source_ranch = #{sourceRanch}, update_by = #{updateBy}, update_time = #{updateTime}, create_by = #{createBy}, create_time = #{createTime}, is_delete = #{isDelete}, where id = #{id} delete from sheep_file where id = #{id} delete from sheep_file where id in #{id}