Domanda

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
È stato utile?

Soluzione

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)).

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top