Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

VARCHAR() Size and Performance?

Debbie_1004338aMay 11 2013 — edited May 11 2013
Many moons ago, I took an Oracle class in college, and I seem to recall my instructor saying that you would get better performance if you choose a VARCHAR() that was certain multiples of whatever.

For example, that VARCHAR(64) would be better than VARCHAR(63) or VARCHAR(65).


Reminder: I am actually working in the MySQL world, and just here to steal knowledge from all of you brainy Oracle people!! :)


As far as I can tell from the MySQL Manual, a VARCHAR() variable - for standard character sets - just takes the String Length and adds 1 Byte.

So, "Debbie" would be 7 Bytes regardless of whether you used a VARCHAR(63), VARCHAR(64) or VARCHAR(65).

How does this work in the Oracle world?

It's probably a petty point in either MySQL or Oracle, but I'm trying to learn how to do things the right way!!

Thanks,


Debbie
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2013
Added on May 11 2013
11 comments
1,926 views