Question

I am working on creating a SSIS package from DB2 for i to MySQL. Can some one help me in figuring out the right data types to use in MySQL that are compatible with DB2 for i?

Data type in DB2 for i are:

  1. 2S
  2. 45A
Was it helpful?

Solution

The 2S means "signed" numeric. There should be another number following the 2S and that will signify the number of decimal positions. If that other number is a 0 you can use any of the integer types in MySQL: tinyint, smallint, etc. If that other number is not a zero you can use float in MySQL.

The 45A means 45 alphanumeric characters. The MySQL equivalent would be char(45) (though you'll want to use varchar(45)).

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