Home > Database > Mysql Tutorial > java生成自定义的表ID

java生成自定义的表ID

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:59:08
Original
1626 people have browsed it

需生成如下ID: 56d7ade1-87d1-4f54-8dc8-13611c8c2545 27181ad4-4214-4e12-af3a-911a0103a12f 24cafdfb-eac3-4567-80c0-70d21d096b19 c92046a0-3d94-4d72-ba8f-cdac30ed69e8 1e607dde-eef6-49ac-a3b1-16ba1475d293 在java里可以这样使用: UUID uuid = UUID

需生成如下ID:

56d7ade1-87d1-4f54-8dc8-13611c8c2545
27181ad4-4214-4e12-af3a-911a0103a12f
24cafdfb-eac3-4567-80c0-70d21d096b19
c92046a0-3d94-4d72-ba8f-cdac30ed69e8
1e607dde-eef6-49ac-a3b1-16ba1475d293

在java里可以这样使用:

UUID uuid = UUID.randomUUID();


System.out.println(uuid.toString());

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Install JAVA
From 1970-01-01 08:00:00
0
0
0
Unable to install java
From 1970-01-01 08:00:00
0
0
0
Can java be used as the backend of the web?
From 1970-01-01 08:00:00
0
0
0
Is this in Java language?
From 1970-01-01 08:00:00
0
0
0
Help: JAVA encrypted data PHP decryption
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template