List:General Discussion« Previous MessageNext Message »
From:Dana Powers Date:August 21 2000 9:46pm
Subject:RE: CHAR vs VARCHAR
View as plain text  
> Given this, what is the reason to use VARCHARs instead of CHARs?
> 
> Given that the trailing spaces are removed when the value is retreived, I
> can only see the case where you want to store strings with trailing spaces
> as an instance where you would want to use VARCHAR.
Storage. If you have a field such as email address that -could- be very long,
but generally isnt, and is useless if truncated - you would need 255 chars.
Unless you are willing to waste a majority of that space in the general case,
you should use varchars.
Dana

> > >> The big difference is speed.  CHARs are hella faster than
> > VARCHARS.  By a
> > >> lot.  CHARs take up a bit more disk space.  It's disk space
> > vs. speed.  We
> > >> choose speed for our applications.
Thread
CHAR vs VARCHARClaude Cormier21 Aug
  • Re: CHAR vs VARCHARRob McMillin21 Aug
  • Re: CHAR vs VARCHARClaude Cormier21 Aug
    • RE: CHAR vs VARCHARSander Pilon21 Aug
  • Re: CHAR vs VARCHARKris Dahl21 Aug
    • Re: CHAR vs VARCHARJan Dvorak21 Aug
      • Re: CHAR vs VARCHARKris Dahl22 Aug
  • Re: CHAR vs VARCHAREd Wang21 Aug
Re: CHAR vs VARCHARKris Dahl21 Aug
  • RE: CHAR vs VARCHARChristopher Thompson21 Aug
    • RE: CHAR vs VARCHARDana Powers21 Aug
    • Re: CHAR vs VARCHARSteve Ruby21 Aug
  • Fastest way to select setsChristopher Thompson21 Aug
    • Re: Fastest way to select setsSteve Ruby22 Aug
    • Re: Fastest way to select setsTonu Samuel22 Aug
      • Re: Fastest way to select setsTino Hendricks28 Aug
        • Re: Fastest way to select setsTonu Samuel2 Sep
Re: CHAR vs VARCHARPaul Schmidt22 Aug