This documentation is for an older version of HVR.
Data Type Mapping for MySQL
This section lists the mapping of data types for MySQL.
MySQL as Source
When MySQL is used as a source location, following is the mapping of data types in MySQL to the corresponding HVR repository data type.
MySQL | HVR Capture Support | HVR Repository Data Type |
---|---|---|
bigint | Native | bigint |
bigint unsigned | Native | bigint unsigned |
bit | Native | bit (mysql) |
bool | Native | tinyint signed |
boolean | Native | tinyint signed |
dec | Native | decimal |
dec unsigned | Native | decimal |
decimal | Native | decimal |
decimal unsigned | Native | decimal |
double | Native | double |
double precision | Native | double |
double precision unsigned | Native | double |
double unsigned | Native | double |
fixed | Native | decimal |
fixed unsigned | Native | decimal |
float | Native | real |
float unsigned | Native | real |
int | Native | int |
int unsigned | Native | int unsigned |
integer | Native | int |
integer unsigned | Native | int unsigned |
mediumint | Native | mediumint |
mediumint unsigned | Native | mediumint unsigned |
numeric | Native | decimal |
numeric unsigned | Native | decimal |
real | Native | double |
real unsigned | Native | double |
smallint | Native | smallint |
smallint unsigned | Native | smallint unsigned |
tinyint | Native | tinyint signed |
tinyint unsigned | Native | tinyint unsigned |
date | Native | ansidate |
datetime | Native | datetime (mysql) |
time | Native | time (mysql) |
timestamp | Native | timestamp (mysql) |
year | Native | smallint |
binary | Native | binary |
blob | Native | varbinary(max) |
char | Native | char |
long varchar | Native | varchar(max) |
longblob | Native | varbinary(max) |
longtext | Native | varchar(max) |
mediumblob | Native | varbinary(max) |
mediumtext | Native | varchar(max) |
long | Native | varchar(max) |
text | Native | varchar(max) |
tinyblob | Native | varbinary(max) |
tinytext | Native | varchar(max) |
varbinary | Native | varbinary |
varchar | Native | varchar |
enum | Extended | <<enum>> |
set | Extended | <<set>> |
geometry | Extended | <<geometry>> |
geometrycollection | Extended | <<geometrycollection>> |
linestring | Extended | <<linestring>> |
multilinestring | Extended | <<multilinestring>> |
multipoint | Extended | <<multipoint>> |
multipolygon | Extended | <<multipolygon>> |
point | Extended | <<point>> |
polygon | Extended | <<polygon>> |
json | Extended | <<json>> |
MySQL as Target
When MySQL is used as a target location, following is the mapping of HVR repository data types to the corresponding data type in MySQL.
Text in green cell indicates the native data type of the DBMS
HVR Repository Data Types | Attributes | MySQL (UTF-8) |
---|---|---|
ansidate (ingres) | null=1 | date |
ansidate | null=1 | date |
bfile | null=1 | longblob |
bigint unsigned |
bytelen=8
null=1 | bigint unsigned |
bigint |
bytelen=8
null=1 | bigint |
binary |
bytelen=10
null=1 | binary(10) |
binary_double |
bytelen=8
null=1 | double |
binary_float |
bytelen=4
null=1 | float |
bit (mysql) |
bitlen=32
null=1 | bit(32) |
bit |
bytelen=1
null=1 | tinyint |
blob | null=1 | longblob |
bool |
bytelen=1
null=1 | tinyint |
boolean |
bytelen=1
null=1 | tinyint |
byte varying |
bytelen=10
null=1 | varbinary(10) |
byte |
bytelen=10
null=1 | binary(10) |
byteint |
bytelen=1
null=1 | tinyint |
c |
bytelen=10
encoding=UTF-8 null=1 | char(10) charset utf8mb4 |
char |
bytelen=10
encoding=UTF-8 null=1 | char(10) charset utf8mb4 |
char |
bytelen=4000
encoding=UTF-8 null=1 | varchar(4000) charset utf8mb4 |
char |
bytelen=8000
encoding=UTF-8 null=1 | varchar(8000) charset utf8mb4 |
char |
bytelen=40
charlen=10 encoding=UTF-8 null=1 | char(10) charset utf8mb4 |
char |
bytelen=10
encoding=WINDOWS-1252 null=1 | char(10) charset latin1 |
char (oracle) |
bytelen=10
encoding=UTF-8 null=1 | char(10) charset utf8mb4 |
char (oracle) |
bytelen=2000
encoding=UTF-8 null=1 | varchar(2000) charset utf8mb4 |
char (oracle) |
bytelen=40
charlen=10 encoding=UTF-8 null=1 | char(10) charset utf8mb4 |
char (oracle) |
bytelen=10
encoding=WINDOWS-1252 null=1 | char(10) charset latin1 |
clob |
encoding=UTF-8
null=1 | longtext charset utf8mb4 |
date | null=1 | datetime(0) |
date (hana) | null=1 | date |
date (mysql) | null=1 | date |
date (sybase) | null=1 | date |
datetime (bigquery) |
prec_sec=0
null=1 | datetime(0) |
datetime (mysql) |
prec_sec=0
null=1 | datetime(0) |
datetime (sybase) | null=1 | datetime(3) |
datetime | null=1 | datetime(3) |
datetime2 |
prec_sec=0
null=1 | datetime(0) |
datetimeoffset |
prec_sec=0
null=1 | datetime(0) |
db2 timestamp with time zone |
prec_sec=0
null=1 | datetime(0) |
db2 xml |
encoding=UTF-8
null=1 | longtext charset utf8mb4 |
dbclob |
charlen=0
null=1 | longtext charset utf16 |
decfloat |
prec=16
null=1 | varchar(42) charset utf8mb4 |
decfloat |
prec=34
null=1 | varchar(42) charset utf8mb4 |
decimal |
prec=10
scale=3 null=1 | decimal(10,3) |
decimal |
prec=6
null=1 | decimal(6) |
double |
bytelen=8
null=1 | double |
epoch |
prec_sec=0
null=1 | timestamp(0)null |
float |
bytelen=8
null=1 | double |
float4 |
bytelen=4
null=1 | float |
float8 |
bytelen=8
null=1 | double |
float64 |
bytelen=8
null=1 | double |
graphic |
charlen=10
null=1 | char(10) charset utf16 |
image | null=1 | longblob |
image (sybase) | null=1 | longblob |
ingresdate | null=1 | datetime(0) |
int unsigned |
bytelen=4
null=1 | int unsigned |
int |
bytelen=4
null=1 | int |
integer |
bytelen=4
null=1 | int |
integer1 |
bytelen=1
null=1 | tinyint |
integer2 |
bytelen=2
null=1 | smallint |
integer4 |
bytelen=4
null=1 | int |
integer8 |
bytelen=8
null=1 | bigint |
int64 |
bytelen=8
null=1 | bigint |
interval day to second (ingres) |
prec_sec=0
null=1 | datetime(0) |
interval day to second |
prec_sec=0
prec_day=0 null=1 | datetime(0) |
interval month to second |
prec_sec=0
null=1 | datetime(0) |
interval year to month (ingres) | null=1 | datetime(0) |
interval year to month |
prec_year=0
null=1 | datetime(0) |
json | null=1 | longtext charset utf8mb4 |
jsonb | null=1 | longtext charset utf8mb4 |
long byte | null=1 | longblob |
long char |
encoding=UTF-8
null=1 | longtext charset utf8mb4 |
long nvarchar (db2) |
charlen=0
null=1 | longtext charset utf16 |
long nvarchar |
charlen=0
null=1 | longtext charset utf16 |
long raw | null=1 | longblob |
long varbinary | null=1 | longblob |
long varchar (db2) |
encoding=UTF-8
null=1 | longtext charset utf8mb4 |
long varchar |
encoding=UTF-8
null=1 | longtext charset utf8mb4 |
long |
encoding=UTF-8
null=1 | longtext charset utf8mb4 |
mediumint unsigned |
bytelen=3
null=1 | mediumint unsigned |
mediumint |
bytelen=3
null=1 | mediumint |
money (ingres) | null=1 | decimal(14,2) |
money | null=1 | decimal(19,4) |
nchar |
charlen=10
null=1 | char(10) charset utf16 |
nchar (oracle) |
bytelen=20
charlen=10 null=1 | char(10) charset utf16 |
nclob |
charlen=0
null=1 | longtext charset utf16 |
ntext |
charlen=0
null=1 | longtext charset utf16 |
number |
scale=0
null=1 | decimal(65,4) |
number |
prec=10
scale=-127 null=1 | double |
number |
prec=10
scale=3 null=1 | decimal(10,3) |
number |
prec=26
scale=0 null=1 | decimal(26) |
number |
prec=6
scale=0 null=1 | int |
numeric (db2i) |
prec=10
scale=3 null=1 | decimal(10,3) |
numeric (db2i) |
prec=6
null=1 | decimal(6) |
numeric |
prec=10
scale=3 null=1 | decimal(10,3) |
numeric |
prec=26
null=1 | decimal(26) |
numeric |
prec=6
null=1 | decimal(6) |
nvarchar |
charlen=10
null=1 | varchar(10) charset utf16 |
nvarchar(max) |
charlen=0
null=1 | longtext charset utf16 |
nvarchar2 |
charlen=10
null=1 | varchar(10) charset utf16 |
postgres date | null=1 | date |
postgres timestamp with time zone |
prec_sec=0
null=1 | datetime(0) |
postgres timestamp |
prec_sec=0
null=1 | datetime(0) |
raw |
bytelen=10
null=1 | varbinary(10) |
real |
bytelen=4
null=1 | float |
rowid |
bytelen=18
charlen=18 encoding=US-ASCII null=1 | char(18) charset ascii |
rowversion |
bytelen=10
null=1 | binary(10) |
smalldatetime | null=1 | datetime(0) |
smallint unsigned |
bytelen=2
null=1 | smallint unsigned |
smallint |
bytelen=2
null=1 | smallint |
smallmoney | null=1 | decimal(10,4) |
text (ingres) |
bytelen=10
encoding=UTF-8 null=1 | varchar(10) charset utf8mb4 |
text (sqlserver) |
encoding=WINDOWS-1252
null=1 | longtext charset latin1 |
text(sybase) |
encoding=UTF-8
null=1 | longtext charset utf8mb4 |
time (mysql) |
prec_sec=0
null=1 | time(0) |
time (hana) | null=1 | time(0) |
time (sybase) | null=1 | time(3) |
time with local time zone |
prec_sec=0
null=1 | time(0) |
time with time zone |
prec_sec=0
null=1 | time(0) |
time |
prec_sec=0
null=1 | time(0) |
time |
prec_sec=3
null=1 | time(3) |
time2 | null=1 | time(0) |
timestamp (bigquery) |
prec_sec=0
null=1 | datetime(0) |
timestamp (db2) |
prec_sec=0
null=1 | datetime(0) |
timestamp (hana) |
prec_sec=0
null=1 | datetime(0) |
timestamp (ingres) |
prec_sec=0
null=1 | datetime(0) |
timestamp (mysql) |
prec_sec=0
null=1 | timestamp(0)null |
timestamp (oracle) |
prec_sec=0
null=1 | datetime(0) |
timestamp (sqlserver) |
bytelen=10
null=1 | binary(10) |
timestamp (sybase) |
bytelen=10
null=1 | varbinary(10) |
timestamp with local time zone |
prec_sec=0
null=1 | datetime(0) |
timestamp with local tz (oracle) |
prec_sec=0
null=1 | datetime(0) |
timestamp with time zone |
prec_sec=0
null=1 | datetime(0) |
timestamp with tz (oracle) |
prec_sec=0
null=1 | datetime(0) |
timestamp |
prec_sec=0
null=1 | datetime(0) |
tinyint signed |
bytelen=1
null=1 | tinyint |
tinyint unsigned |
bytelen=1
null=1 | tinyint unsigned |
tinyint |
bytelen=1
null=1 | tinyint unsigned |
uniqueidentifier |
bytelen=16
null=1 | binary(16) |
unitext |
charlen=0
null=1 | longtext charset utf16 |
univarchar |
charlen=10
null=1 | varchar(10) charset utf16 |
unsigned bigint |
bytelen=8
null=1 | bigint unsigned |
unsigned int |
bytelen=4
null=1 | int unsigned |
unsigned smallint |
bytelen=2
null=1 | smallint unsigned |
urowid |
bytelen=100
charlen=100 encoding=US-ASCII null=1 | varchar(100) charset ascii |
varbinary |
bytelen=10
null=1 | varbinary(10) |
varbinary (sybase) |
bytelen=10
null=1 | varbinary(10) |
varbinary(max) | null=1 | longblob |
varbyte |
bytelen=10
null=1 | varbinary(10) |
varchar |
bytelen=10
encoding=UTF-8 null=1 | varchar(10) charset utf8mb4 |
varchar |
bytelen=8000
encoding=UTF-8 null=1 | varchar(8000) charset utf8mb4 |
varchar |
bytelen=40
charlen=10 encoding=UTF-8 null=1 | varchar(10) charset utf8mb4 |
varchar |
bytelen=10
encoding=WINDOWS-1252 null=1 | varchar(10) charset latin1 |
varchar (sybase) |
bytelen=10
encoding=UTF-8 null=1 | varchar(10) charset utf8mb4 |
varchar (sybase) |
bytelen=8000
encoding=UTF-8 null=1 | varchar(8000) charset utf8mb4 |
varchar (sybase) |
bytelen=40
charlen=10 encoding=UTF-8 null=1 | varchar(10) charset utf8mb4 |
varchar (sybase) |
bytelen=10
encoding=WINDOWS-1252 null=1 | varchar(10) charset latin1 |
varchar(max) |
encoding=WINDOWS-1252
null=1 | longtext charset latin1 |
varchar2 |
bytelen=10
encoding=UTF-8 null=1 | varchar(10) charset utf8mb4 |
varchar2 |
bytelen=40
charlen=10 encoding=UTF-8 null=1 | varchar(10) charset utf8mb4 |
varchar2 |
bytelen=10
encoding=WINDOWS-1252 null=1 | varchar(10) charset latin1 |
vargraphic |
charlen=10
null=1 | varchar(10) charset utf16 |
xml |
charlen=0
null=1 | longtext charset utf16 |
year (mysql) | null=1 | year |