Oracle to Go Type Mapping - Zontroy

Oracle to Go Type Mapping

Oracle Data TypeGo Data TypeGo Nullable Data TypeGo Primitive Type
BFILE[]byte
BLOB[]byte
CHARstringstring
CLOBstringstring
DATE
FLOATfloat32float32
INTEGERintint
INTERVAL DAY TO SECOND
INTERVAL YEAR TO MONTHintint
LONGint64int64
LONG RAW[]byte
NCHARstringstring
NCLOBstringstring
NUMBERintint
NVARCHAR2stringstring
RAW[]byte
ROWIDstringstring
TIMESTAMP
TIMESTAMP WITH LOCAL TIME ZONE
TIMESTAMP WITH TIME ZONE
UNSIGNED INTEGERuintuint
VARCHAR2stringstring

Post a Comment