I'd like to transform a String (from an XML file) to a DB Primary Key.
In particular, I would like to make sure that this value are unique, are all positive and respect the DB primary key specification that is: NUMBER(9).
The string that i try to transform have this characterization:
PDR_20140909150001
Obviously i can ignore first part of the string (because are the same for all the file), but i have to transform an a timestamp string like 20140909150001
in an int value that must be have maximum 9 digit of lenght.
How can i do?