base36

Datatype to store 20 digit number

烈酒焚心 提交于 2019-11-27 07:49:34
问题 I have a number of 20 digit, which datatype will support to store this number? I have tried long, double but I 'm getting out of range. Number = 48565664968483514466 Then I have to convert this number to Base36 to generate the barcode. 回答1: BigInteger: The BigInteger class allocates as much memory as it needs to hold all the bits of data it is asked to hold and also provides operations analogues to all of Java's primitive integer operators and for all relevant methods from java.lang.Math.

Base 36 to Base 10 conversion using SQL only

*爱你&永不变心* 提交于 2019-11-26 22:55:32
问题 A situation has arisen where I need to perform a base 36 to base 10 conversion, in the context of a SQL statement. There doesn't appear to be anything built into Oracle 9, or Oracle 10 to address this sort of thing. My Google-Fu, and AskTom suggest creating a pl/sql function to deal with the task. That is not an option for me at this point. I am looking for suggestions on an approach to take that might help me solve this issue. To put this into a visual form... WITH Base36Values AS ( SELECT