
Anonymous
Not applicable
2011-04-08
04:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[resolved] how to generate uuid
I want to generate random UUID numbers in a certain format for insertion in a database - what is the recommended procedure to achieve this?
I have been ask to use routines but it does not work Theres a field in file called id and i wan to generate random uuid for every row to put it in my database
I have been ask to use routines but it does not work Theres a field in file called id and i wan to generate random uuid for every row to put it in my database
1,296 Views
1 Solution
Accepted Solutions

Anonymous
Not applicable
2011-04-18
03:31 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Simple method to include in your routine...
of course you could always just put (java.util.UUID.randomUUID()).toString() in the ID column in, say, a tMAP.
public static String createUUID() {
return (java.util.UUID.randomUUID()).toString();
}
of course you could always just put (java.util.UUID.randomUUID()).toString() in the ID column in, say, a tMAP.
1,296 Views
2 Replies

Anonymous
Not applicable
2011-04-18
03:31 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Simple method to include in your routine...
of course you could always just put (java.util.UUID.randomUUID()).toString() in the ID column in, say, a tMAP.
public static String createUUID() {
return (java.util.UUID.randomUUID()).toString();
}
of course you could always just put (java.util.UUID.randomUUID()).toString() in the ID column in, say, a tMAP.
1,297 Views

Anonymous
Not applicable
2011-04-18
10:03 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks so much
1,296 Views
