Hacker News new | past | comments | ask | show | jobs | submit login

varchar is an alias for "character varying", which is exactly the same as text.

I use both varchar and text. varchar for things that should be one line (i.e. a username). text for things that might be multiple lines. formtastic will show a html input field for varchar columns and a textarea for text columns.

(of course, you can insert paragraphs into the varchar columns, but it's a form of documentation)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: