Sql-Data Types
Sql-Data Types
An SQL developer must decide what type of data that will be stored inside each
column when creating a table. The data type is a guideline for SQL to
understand what type of data is expected inside of each column, and it also
identifies how SQL will interact with the stored data.
ENUM(val1, val2, val3, A string object that can have only one value,
...) chosen from a list of possible values. You can list up
to 65535 values in an ENUM list. If a value is
inserted that is not in the list, a blank value will be
inserted. The values are sorted in the order you
enter them
SET(val1, val2, val3, A string object that can have 0 or more values,
...) chosen from a list of possible 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.
ADVERTISEMENT
Lookup Wizard Let you type a list of options, which can then be 4 bytes
chosen from a drop-down list