MYSQL1
MYSQL1
The data type of a column defines what value the column can hold: integer,
character, money, date and time, binary, and so on.
BINARY(size) Equal to CHAR(), but stores binary byte strings. The size p
the column length in bytes. Default is 1
VARBINARY(size) Equal to VARCHAR(), but stores binary byte strings. The
specifies the maximum column length in bytes.
TINYBLOB For BLOBs (Binary Large OBjects). Max length: 255 byte
ENUM(val1, val2, val3, ...) A string object that can have only one value, chosen from
values. You can list up to 65535 values in an ENUM list. I
inserted that is not in the list, a blank value will be inserted
sorted in the order you enter them
SET(val1, val2, val3, ...) A string object that can have 0 or more values, chosen from
values. You can list up to 64 values in a SET list
DOUBLE
PRECISION(size, d)
Note: All the numeric data types may have an extra option: UNSIGNED or
ZEROFILL. If you add the UNSIGNED option, MySQL disallows negative
values for the column. If you add the ZEROFILL option, MySQL automatically
also adds the UNSIGNED attribute to the column.
Date and Time Data Types