I have a form where clients will be typing a few paragraphs in various textarea’s. Should I choose varchar or text for field type? Does it matter?
Thanks.
Erik
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on the possible length of text you accept. Text has no limitations at all, but that means you could end up with a giant, huge, ridiculous response size. On the other hand, if you’re not worried about that, text is fine.
Varchar requires you to have some idea of how large you want the response to max out at, like 256, 1000, 4000 chars, for example. Any data above that is lost.