I would like to know what data type I need to use for a description.
example:
Baseball cap by adidas Originals
- Made from cotton
- Embroidered brand logo to the front
- Five panel styling
- Ventilation holes to the side
What data type do I need to use so when I want to use this data it still contain the spaces and indents?
It has nothing to do with the data type. You can use varchar
or text
. If you are trying to render as HTML then you'll want to render it between <pre>
tags.
Your text will be saved as it is, your text render is the one that has to understand the line breaks, indents, etc.
You can use any alphanumeric datatype.