If you work with MySQL databases, you may have encountered the SERIAL
type in a table’s definition. And if you’ve come over from PostgreSQL, you might have a false expectation about how MySQL’s SERIAL
works – unless you already know 😉
Below is a quick overview of MySQL’s SERIAL
type, including an explanation of how it differs from PostgreSQL’s SERIAL
type and similar functionality from other DBMSs.