2011年3月5日 星期六

MySQL 資料型態的限制



CHAR固定長度 0 到 255 字
VARCHAR變動長度 0 到 255 字
TINYTEXT255 字
TEXT,BLOB64Kib 字
MEDIUMTEXT,MEDIUMBLOB16Mib 字
LONGTEXT,LONGBLOB4Gib 字
TINYINT-128 to 127 或 0 to 255無符號
SMALLINT-32768 to 32767 或 0 to 65535無符號
MEDIUMINT-8388608 to 8388607 或 0 to 16777215無符號
INT-2147483648 to 2147483647 或 0 to 4294967295無符號
BIGINT-9223372036854775808 to 9223372036854775807 normal
FLOATA small number with a floating decimal point.
DOUBLEA large number with a floating decimal point.
DECIMALA DOUBLE stored as a string , allowing for a fixed decimal point.
DATEYYYY-MM-DD.
DATETIMEYYYY-MM-DD HH:MM:SS.
TIMESTAMPYYYYMMDDHHMMSS.
TIMEHH:MM:SS.
ENUM Short for ENUMERATION which means that each column may have one of a specified possible values.
SETSimilar to ENUM except each column may have more than one of the specified possible values.

沒有留言:

張貼留言