Solved

Mysql field length

Posted on 2013-01-24
5
676 Views
Last Modified: 2013-01-24
I am using mysql through Navicat.

I have a form field where a user can enter up to 10,000 characters
Can you say which field would be best to use. At the moment I am using varchar 750.

Thanks for any help.
Regards
John
0
Comment
Question by:johnhardy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 325 total points
ID: 38813895
TEXT is the data type category you need to choose:
http://dev.mysql.com/doc/refman/5.0/en/blob.html
0
 
LVL 20

Assisted Solution

by:Mark Brady
Mark Brady earned 175 total points
ID: 38814037
I would use longtext for any large fields you need.
0
 

Author Comment

by:johnhardy
ID: 38814350
Thanks elvin66
Do I need to specify a length for longtext?
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 325 total points
ID: 38814477
no. those data types are without "length" specification
0
 

Author Closing Comment

by:johnhardy
ID: 38814861
Many thank for the quick answers

John
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question