You are here: MSSQL varchar vs. text « PHP SQL « IT news, forums, messages
MSSQL varchar vs. text

Posted by Kimmo Laine on 12/07/05 10:04

Hello group!

What's the essential difference between the two field types varchar and
text. I've used varchar to store strings so far, but it seems that there's a
limit of getting only the first 255 characters with a query in php. And so
far I've learned that there are work-arounds for this, but work-arounds are
always ugly so I though why not use the text then, since I learned that text
datatype has no such limitation as varchar. I've estimated that the length
of the strings would vary between 50-1000 characters so would using a text
datatype be reasonable in this case, or would a varchar with ugly
work-arounds be better in this case?

--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirvi�
antaatulla.sikanautaa@gmail.com.NOSPAM.invalid

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация