Afficher un message
Vieux 18/10/2007, 11h44   #2
Sebastian Mendel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Limiting the text size on text fields

Ganesh's screen schrieb:
> Is there a way to restrict the length of text field in MySQL. For example, it
> is of 65K limit and could hold more than 20000 characters. Is there a way to
> restrict that to 4000 characters at table/field level. Coz the
> max_allowed_packet constrainted the entire DB.


you can specify the maximum length only on these field types:

CHAR(length)
VARCHAR(length)
BINARY(length)
VARBINARY(length)

--
Sebastian

  Réponse avec citation
 
Page generated in 0,05428 seconds with 9 queries