Reference · Database migration
Data type mapping between database engines
What each column type becomes when you move between SQL Server, PostgreSQL, MySQL, Oracle, Db2 and MongoDB, and what to check before you trust the result.
Start from your source
Six engines, one page each
The mappings are the defaults our Database Migration Platform proposes. SQL Server, PostgreSQL, MySQL, Oracle and Db2 can each be the source or the target; MongoDB can be a source.
From SQL Server
SQL Server data types
Every SQL Server column type we map, what it becomes in each target database, and what to check before you trust the result.
Open the referenceFrom Oracle
Oracle data types
Every Oracle column type we map, what it becomes in each target database, and the Oracle habits that catch people out.
Open the referenceFrom MySQL
MySQL data types
Every MySQL column type we map, what it becomes in each target database, and where MySQL’s defaults differ from the rest.
Open the referenceFrom PostgreSQL
PostgreSQL data types
Every PostgreSQL column type we map, what it becomes in each target database, and what PostgreSQL has that the others do not.
Open the referenceFrom Db2
Db2 data types
Every Db2 for Linux, UNIX and Windows column type we map, what it becomes in each target database, and what to check.
Open the referenceFrom MongoDB
MongoDB data types
How a MongoDB collection becomes a table: what each BSON type becomes in each target, and what happens when documents disagree.
Open the referenceEvery pair
Which pairs we have tested
Every pair below is supported. Where we have tested it, the cell says how.
| From \ To | PostgreSQL | MySQL | SQL Server | Oracle | Db2 |
|---|---|---|---|---|---|
| SQL Server | Automated end-to-end test; a live deployment keeps about 780 million rows in sync ahead of cutover | Tested by hand | Not yet tested | Not yet tested | Not yet tested |
| Oracle | Automated end-to-end test; live change capture tested on Oracle 23ai (Nov 2026) | Not yet tested | Not yet tested | Not yet tested | Not yet tested |
| MySQL | Tested with live change capture on MySQL 8 (Nov 2026) | Not yet tested | Not yet tested | Not yet tested | Not yet tested |
| PostgreSQL | Automated end-to-end test | Not yet tested | Not yet tested | Not yet tested | Not yet tested |
| Db2 | Initial load tested; ongoing change capture not yet | Not yet tested | Not yet tested | Not yet tested | Not yet tested |
| MongoDB | Nightly end-to-end test: inserts, updates and deletes | Not yet tested | Not yet tested | Not yet tested | Not yet tested |
Change data capture runs on Debezium 3.7: SQL Server capture instances, PostgreSQL logical decoding, MySQL binlog, Oracle LogMiner, Db2 SQL Replication capture tables and MongoDB change streams.