摘要 |
Embodiments of the present invention disclose a multi-version concurrency control method in a database and a database system, which are mainly applied to the field of database technologies. The database system sets a data page link of a page, where the data page link includes a page pointer of each version page of the page, and a page pointer of a version page is used to point to another version page prior to a last operation on the version page. In this way, when a page in the database is read, if a timestamp of a current version page is greater than a timestamp of a read transaction included in a data reading request, page-level rollback may be directly performed according to a data page link of the page that is requested to read to roll back to a page that needs to be read, which helps a user to know a page in the database at any time, that is, which facilitates queries for data on each version page in the database. Further, the database system may implement record rollback efficiently by combining a data page link and a record link, thereby realizing consistent reading. |