I only get set the text field in MySQL to 255, if I want to store a data longer than 255 chars, what can I do?
Use TEXT datatype:
TEXT
CREATE TABLE t_text (value TEXT NOT NULL); INSERT INTO t_text SELECT RPAD('', 1000, '*'); SELECT LENGTH(value) FROM t_text; --- 1000