TINYTEXT
Very small character string. A TINYTEXT column can store up to 255 characters.
Syntax
TINYTEXT [CHARACTER SET charset_name] [COLLATE collation_name]Description
EXAMPLES
TINYTEXT
CREATE TABLE tinytext_example (
description VARCHAR(20),
example TINYTEXT
) DEFAULT CHARSET=latin1; -- One byte per char makes the examples clearerINSERT INTO tinytext_example VALUES
('Normal foo', 'foo'),
('Trailing spaces foo', 'foo '),
('NULLed', NULL),
('Empty', ''),
('Maximum', RPAD('', 255, 'x'));Data too Long
See Also
Last updated
Was this helpful?

