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!

if length of varchar2 should be 2 n times power

953965Aug 5 2012 — edited Aug 6 2012
I am a java programmer.My headman told me when use varchar2(number),the number in parenthesis should be 2 n times power ,such as 32,64,128;because number stored in computer was binary system.But I feel so uncertain,in my option whether it is "1001" or "00001000",the computer should always take the whole byte and calculate what number is it.I search the internet,there was not so theory at all,and so as orcale's documents.
So ,is there so theory ,if the number defined the bytes of varchar2 is 2 times power is recommended?
If you know ,please tell me ,thank you so much.

Edited by: 950962 on 2012-8-6 上午8:54
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 3 2012
Added on Aug 5 2012
3 comments
890 views