Hi,
I need to convert a bigint (64bit) into int (32bit). I dont want to lose any data and I cant strip data. I need to maintain the data ina single column again. But I dont have those many records which needs not more than 32 bit int. So one thing I am assuming is making a reference table and then use mapping logic. If you can give me any alternate way please let me know.
Thanks
Kavuri
convert bigint 64bit into int 32bit
Moderators: chulett, rschirm, roy
Re: convert bigint 64bit into int 32bit
Then you are out of luck when the value in your bigint exceeds what can be stored in the int. What then?kavuri wrote:I need to convert a bigint (64bit) into int (32bit). I dont want to lose any data and I cant strip data.
![Confused :?](./images/smilies/icon_confused.gif)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Re: convert bigint 64bit into int 32bit
Hi Craig,
Here I dont need exact data as it is in the source column. I can convert it and then pass the values to another package which is already built. After I get the result from the package I need to do reverse mapping to get the original values.
So here I would like to create a correspondancies table. Can I do it?
Thanks
Bhargava
Here I dont need exact data as it is in the source column. I can convert it and then pass the values to another package which is already built. After I get the result from the package I need to do reverse mapping to get the original values.
So here I would like to create a correspondancies table. Can I do it?
Thanks
Bhargava