![]() ![]() In this example, the INT data type is used which represents an integer. In MySQL, you would use AUTO_INCREMENT instead of SERIAL. We can add SERIAL right after the school_id column in our teachers table. In PostgreSQL, a SERIAL data type is an integer that will automatically increment by one for every new row that is created. Here is the complete list of PostgreSQL data types and MySQL data types. This article will not go through every single data type but will cover some of the popular ones.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |