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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top