문제

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