Anoutsourcedatabaseisadatabaseserviceprovidedbycloudcomputingcompanies.Usingtheoutsourcedatabasecanreducethehardwareandsoftware'scostandalsogetmoreefficientandreliabledataprocessingcapacity.However,theoutsourcedatabasestillhassomechallenges.Iftheserviceproviderdoesnothavesufficientconfidence,thereisthepossibilityofdataleakage.Thedatamayhasuser'sprivacy,sodataleakagemaycausedataprivacyleak.Basedonthisfactor,toprotecttheprivacyofdataintheoutsourcedatabasebecomesveryimportant.Inthepast,scholarshaveproposedk-anonymitytoprotectdataprivacyinthedatabase.Itletsdatabecomeanonymoustoavoiddataprivacyleak.Butk-anonymityhassomeproblems,itisirreversible,andeasiertobeattackedbyhomogeneityattackandbackgroundknowledgeattack.Lateron,scholarshaveproposedsomestudiestosolvehomogeneityattackandbackgroundknowledgeattack.Buttheirstudiesstillcannotrecoverbacktotheoriginaldata.Inthispaper,weproposeadataanonymitymethod.Itcanbereversibleandalsopreventthosetwoattacks.Ourstudyisbasedontheproposedr-transform.Itcanbeusedonthenumerictypeofattributesintheoutsourcedatabase.Intheexperiment,wediscussedthetimerequiredtoanonymizeandrecoverdata.Furthermore,weinvestigatedthedefenseagainsthomogeneousattackandbackgroundknowledgeattack.Attheend,wesummarizedtheproposedmethodandfutureresearches.