In a Database, we have tables such as, Users
table, Posts
table, and so on...
user_id username
----------------------------
1 ToTo
2 TaTa
3 TiTi
Accessing a User page, normally would only require the change of the parameter in the URL.
/User.php?id=2
/User.aspx?id=3
/User.jsp?id=4
On some websites (maybe Google Plus), the ID is a long string of numbers, I decreased my profile ID and increased it, many times, and tried to access those pages, there was no pages (Error 404), maybe some could say, that those users have deleted their profiles, but I think that this ID isn't incremented, its actually being generated.
What is the advantages of generating IDs? (Either a string of numbers or letters/numbers). When it should be used?