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
Solved

Mysql field length

Posted on 2013-01-24
5
656 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
  • 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help in good tutorials for PHP, HTML and CSS 6 40
php56-php-mcrypt for rhel7 php56 1 48
AJAX pass along a variable 3 46
MVC - procedural PHP 10 35
These days socially coordinated efforts have turned into a critical requirement for enterprises.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

856 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