dbx4mysql

Type mappings

Previous Next

MySQL datatypes are mapped to the TFieldType in the following way:

MySQL typeDbExpress typeDelphi type
TINYINTftSmallintTSmallintField
TINYINT UNSIGNEDftSmallintTSmallintField
SMALLINTftSmallintTSmallintField
SMALLINT UNSIGNEDftSmallintTSmallintField
MEDIUMINTftIntegerTIntegerField
MEDIUMINT UNSIGNEDftIntegerTIntegerField
INTftIntegerTIntegerField
INT UNSIGNEDftIntegerTIntegerField
BIGINTftFloatTFloatField
BIGINT UNSIGNEDftFloatTFloatField
DOUBLEftFloatTFloatField
FLOATftFloatTFloatField
DECIMALftFloatTFloatField
CHARftStringTStringField
CHAR BINARYftStringTStringField
VARCHARftStringTStringField
VARCHAR BINARYftStringTStringField
DATEftDateTDateField
TIMEftTimeTTimeField
TIMESTAMPftTimeStampTSQLTimeStampField
DATETIMEftTimeStampTSQLTimeStampField
YEARftIntegerTIntegerField
TINYBLOBftBlobTBlobField
BLOBftBlobTBlobField
MEDIUMBLOBftBlobTBlobField
LONGBLOBftBlobTBlobField
TINYTEXTftMemoTMemoField
TEXTftMemoTMemoField
MEDIUMTEXTftMemoTMemoField
Some of the string/memo fields would be mapped into widestring and widememo fields in BDS2006.