What is a field type that doesn't ignore white spaces?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
kolmes911
Forum Newbie
Posts: 5
Joined: Sat Sep 25, 2010 5:41 pm

What is a field type that doesn't ignore white spaces?

Post by kolmes911 »

A newbie question here.
I tried VARCHAR and TINYTEXT, which ignore spaces.
Does anybody know?
Thanks.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: What is a field type that doesn't ignore white spaces?

Post by John Cartwright »

Ignores spaces, in what reguard?

Char will remove trailing whitespace, whereas Varchar will not (if that's what you meant).
Post Reply