15-SQL Data Types
15-SQL Data Types
Datatype Description
CHAR(size) A FIXED length string (can contain letters, numbers, and
special characters). The size parameter specifies the
column length in characters - can be from 0 to 255.
Default is 1
BINARY(size) Equal to CHAR(), but stores binary byte strings. The size
parameter specifies the column length in bytes. Default is
1
Datatype Description
BIT(size) A bit-value type. The number of bits per value is specified
in size. The size parameter can hold a value from 1 to 64.
The default value for size is 1.
Datatype Description
DATE Format: YYYY-MM-DD. The supported range is from
'1000-01-01' to '9999-12-31'