Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Limiting the text size on text fields

From: Sebastian Mendel <lists(at)sebastianmendel.de>
Date: Thu Oct 18 2007 - 05:44:17 EDT


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


-- 
MySQL General Mailing List
For list archives: 
http://lists.mysql.com/mysql
To unsubscribe:    
http://lists.mysql.com/mysql?unsub=lists@pantek.com
Received on Thu Oct 18 05:42:24 2007

This archive was generated by hypermail 2.1.8 : Thu Jul 03 2008 - 08:40:16 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library