тип данных VARCHAR
Добавлено: 2009-04-15 14:52:57
если не ограничивать тип VARCHAR (не указываит при создании поля) , то сколько символов можно хранить в поле?
Не бойся, когда ты один. Бойся, когда ты ноль.
https://forum.lissyara.su/
The length of a CHAR column is fixed to the length that you declare when you create the table. The length can be any value from 0 to 255. When CHAR values are stored, they are right-padded with spaces to the specified length. When CHAR values are retrieved, trailing spaces are removed unless the PAD_CHAR_TO_FULL_LENGTH SQL mode is enabled.
Values in VARCHAR columns are variable-length strings. The length can be specified as a value from 0 to 65,535. The effective maximum length of a VARCHAR is subject to the maximum row size (65,535 bytes, which is shared among all columns) and the character set used.
Код: Выделить всё
Values in VARCHAR columns are variable-length strings. The length can be specified as a value from 1 to 255 before MySQL 4.0.2 and 0 to 255 as of MySQL 4.0.2.