Distributed globally unique ID (four)

Use data as a unique ID for distributed transactions.

1. Self-incrementing primary keys of databases such as sqlserver and mysql

2. Sequence realization of oracle database

This code is ignored, there is nothing to write. Only need to create a table self-increment table (SqlServer, mysql), or create a sequence (Oracle).

Guess you like

Origin blog.csdn.net/qq_38428623/article/details/105495950