Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[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
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Simple method to include in your routine...
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.

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Simple method to include in your routine...
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.
Anonymous
Not applicable
Author

thanks so much 0683p000009MACJ.png