number datatype in mysql not working code example

Example 1: weka mysql does not recognize int datatype

#See if the following are added, especially the int type
TINYINT=3

SMALLINT=4

SHORT=5

INTEGER=5

INT=5

INT_UNSIGNED=6

BIGINT=6

LONG=6

REAL=7

NUMERIC=2

DECIMAL=2

FLOAT=2

DOUBLE=2

CHAR=0

TEXT=0

VARCHAR=0

LONGVARCHAR=9

BINARY=0

VARBINARY=0

LONGVARBINARY=9

BIT=1

BLOB=8

DATE=8

TIME=8

DATETIME=8

TIMESTAMP=8

Example 2: weka mysql does not recognize int datatype

# Specific data types, the specific data types are modified as follows, mainly to remove comments

string, getString() = 0;    --> nominal

boolean, getBoolean() = 1;  --> nominal

double, getDouble() = 2;    --> numeric

byte, getByte() = 3;        --> numeric

short, getByte()= 4;        --> numeric

int, getInteger() = 5;      --> numeric

long, getLong() = 6;        --> numeric

float, getFloat() = 7;      --> numeric

date, getDate() = 8;        --> date

text, getString() = 9;      --> string

time, getTime() = 10;       --> date

BigDecimal,getBigDecimal()=11;   -->nominal

Tags:

Sql Example