Covert unique string to unique number [message #640119] |
Wed, 22 July 2015 10:57 |
|
brown_zzz
Messages: 39 Registered: August 2012 Location: United Kingdom
|
Member |
|
|
In ORACLE I need a way of converting a unique string to a unique number but don't want the length of the number in digits to be longer than the string. Does anyone know how please?
|
|
|
|
|
|
Re: Covert unique string to unique number [message #640125 is a reply to message #640119] |
Wed, 22 July 2015 12:42 |
John Watson
Messages: 8931 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
I think that this is impossible. Assuming that you are using a reasonably normal character set, your string is (in effect) a number in base 256, but your number will be in base 10. So there simply aren't enough unique numbers to cover all possible unique strings.
|
|
|