I am creating a database in PostgreSQL and struck the question how can I create in the table the field ID with AUTO_INCREMENT, searching the internet I found some examples with the ID field with SERIAL data type and others with INTEGER data type. / p>
What is the difference between these 2 data types and which one can we use to be our ID with AUTO_INCREMENT in the PostgreSQL database?