A database operating method comprising: executing a trigger instruction of a target transaction according to a user instruction to acquire a service logic code into which the target transaction is encapsulated, wherein the target transaction is a stand-alone or distributed transaction; and conducting a speculative execution of the target transaction according to the service logic code by running instructions in the service logic code, wherein each time one of said instructions is a database operating instruction in the target transaction encapsulated in the service logic code, the method further comprises: conducting the speculative execution of the database operating instruction; recording a segmentation condition and an involved data range of the target transaction that are obtained in a process of conducting the speculative execution, the segmentation condition indicating which one or more databases are related to the target transaction and the data range indicating which at least one piece of data in the one or more databases to which the segmentation condition is directed is specifically related to the target transaction; and if the speculative execution of the target transaction succeeds, controlling the one or more databases to which the segmentation condition is directed to execute the target transaction according to the service logic code, the segmentation condition and the involved data range of the target transaction that are obtained in the process of conducting of the speculative execution, wherein if the database operating instruction is a database modification instruction, a data environment of the database operating instruction is simulated in a locally created memory library, and conducting the speculative execution of the database operating instruction is based on the simulated data environment. executing a trigger instruction of a target transaction according to a user instruction to acquire a service logic code into which the target transaction is encapsulated, wherein the target transaction is a stand-alone or distributed transaction; and conducting a speculative execution of the target transaction according to the service logic code by running instructions in the service logic code, wherein each time one of said instructions is a database operating instruction in the target transaction encapsulated in the service logic code, the method further comprises: conducting the speculative execution of the database operating instruction; recording a segmentation condition and an involved data range of the target transaction that are obtained in a process of conducting the speculative execution, the segmentation condition indicating which one or more databases are related to the target transaction and the data range indicating which at least one piece of data in the one or more databases to which the segmentation condition is directed is specifically related to the target transaction; and if the speculative execution of the target transaction succeeds, controlling the one or more databases to which the segmentation condition is directed to execute the target transaction according to the service logic code, the segmentation condition and the involved data range of the target transaction that are obtained in the process of conducting of the speculative execution, wherein if the database operating instruction is a database modification instruction, a data environment of the database operating instruction is simulated in a locally created memory library, and conducting the speculative execution of the database operating instruction is based on the simulated data environment. conducting the speculative execution of the database operating instruction; recording a segmentation condition and an involved data range of the target transaction that are obtained in a process of conducting the speculative execution, the segmentation condition indicating which one or more databases are related to the target transaction and the data range indicating which at least one piece of data in the one or more databases to which the segmentation condition is directed is specifically related to the target transaction; and if the speculative execution of the target transaction succeeds, controlling the one or more databases to which the segmentation condition is directed to execute the target transaction according to the service logic code, the segmentation condition and the involved data range of the target transaction that are obtained in the process of conducting of the speculative execution, wherein if the database operating instruction is a database modification instruction, a data environment of the database operating instruction is simulated in a locally created memory library, and conducting the speculative execution of the database operating instruction is based on the simulated data environment.