Oracle Datatypes and Their Equivalent in MySQL


Here is the list of MySQL datatypes which can be used in place of Oracle datatypes while converting data from Oracle to MySQL. Note that not all Oracle datatypes have a direct equivalent in MySQL — for example, BFILE, INTDAYTOSECOND, INTYEARTOMONTH, and BINFLOAT don't have an exact equivalent, so we map them to the closest one.

Oracle DatatypeEquivalent MySQL Datatype
BFILELongBLOB
BINDOUBLEDouble
BINFLOATInteger
BLOBLongBLOB
CHARVarchar
CLOBLongText
DATEDateTime
FLOATDouble
INTDAYTOSECONDVarchar
INTYEARTOMONTHVarchar
LONGLongText
NCHARNChar
NCLOBLongText
NUMBERDecimal
NUMBERPDecimal
NVARCHAR2NVarchar
RAWLongBlob
ROWIDVarchar
TIMESTAMPDateTime
TIMESTAMPWITHLTZDateTime
TIMESTAMPWITHTZDateTime
UROWIDVarchar
VARCHAR2Varchar

Data Loader automatically maps these datatypes for you while converting Oracle databases to MySQL. Learn more about our conversion tools.