Automatically provide unique id in the database

后端 未结 3 557
無奈伤痛
無奈伤痛 2021-01-26 04:27

In my project i need to register a donor and I need the user to enter his information and the system registers him and generate a unique id to the donor.

3条回答
  •  遥遥无期
    2021-01-26 05:09

    Use auto-incremented integer field. Or use an auto-generated GUID. (Both of these work in T-SQL, I did not try MySQL.)

提交回复
热议问题