Question

Do SQL data types differ based on the Relational Database Management Systems we use?

For example, if I choose MySQL will the database schema I will write for a table in MySQL will also be applicable if I choose to switch to DB2 in future?

Was it helpful?

Solution

Yes, data types do differ from system to system.

You can verify this easily by looking up the data types list for each RDBMS (they all have one, usually online). As a simple example, SQLite doesn't have a genuine DATETIME type; it stores dates using TEXT, REAL or INTEGER.

Further Reading
Oracle Data Types
SQL Server Data Types
Postgresql Data Types
SQLite Data Types

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top