This invention relates to the field of
database technology, specifically a
database conversion method, apparatus, device, medium, and program product. The method includes: obtaining a source
SQL statement to be converted from a source
database; obtaining conversion strategies corresponding to each keyword to be converted in the source
SQL statement, and determining whether conversion strategies corresponding to all keywords to be converted can be obtained; if not, identifying a first keyword to be converted for which
no conversion strategy has been obtained, and obtaining a historical conversion
record corresponding to the first keyword to be converted; wherein the historical conversion
record records conversion operations that convert the first keyword to be converted into a first target keyword in the
target database; and converting each keyword to be converted in the source
SQL statement based on the conversion strategy or the historical conversion
record to obtain a target SQL statement in the
target database. The
conversion method of this invention can greatly improve the success rate and efficiency of automatic
database conversion.