Difference CHAR(1) and VARCHAR2(1)
Can some one tell me the major difference between CHAR(1) and VARCHAR2(1), I need to use flag column of 1 byte.
Which is best for use, and why, index will also apply for this column.
Thanks & Regards
use any of it.. dosent really matter in this case..
"I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."
"Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"
CHAR(10) allocates 10 space and if you use only 3, say for example 'SAM', then balance 7 is left as such, won't be used or reusable. But if using VARCHAR(10), 'SAM' will take 3 and rest 7 will be reused. But in this case of FLAG, nothing make much difference, anyhow it is only 1 character
Click Here to Expand Forum to Full Width