The examples I saw about designing a URL shortened all suggest first to create an sequential ID column in the database, and then use this DB-generated ID to get a shortened URL after converting it for an example to base 62. My question is, why not just use the DB generated ID as the shortened ID?
For an example, if I save the URL in the db www.google.com, and the db generated ID for that was 348, then why not just use that as the shortened URL? eg bit.ly/348