If we use auto increment as our primary key, wouldn't the value just go out of range after say a few years? Is there some management in place to keep it in check while we delete records? Whats the general practice in the industry?
The maximum unsigned value for INT type is 4294967295. The maximum unsigned value for BIGINT type is 18446744073709551615. Do you think you will exceed the above values in a few years?
i'm not so sure cause i'm a newbie to databases and programming in the industry. so i guess we can safely disregard the concern of it going out of range rite? Thanks Social.Network
Yes there should be no concern except in extreme circumstances, even if you think there might be a chance use BIGINT as the data type