How to create a unique identifier without using AUTOINCREMENT

I export data from csv to mysql database, I want the database to create a unique identifier for each imported record. I want to use a unique field when generating the receipt number in the crystal report.

What do you suggest as the best way to do this?

+3
source share
2 answers

If you do not want auto-increment, the only way to guarantee uniqueness is to use a GUID as an identifier.

"", , GUID , . :

(21 28 3.4 Γ— 10 38) , , , , , .

+3

- MySQL, ?

, Oracle, .

+2

Source: https://habr.com/ru/post/1744485/


All Articles