Answer Posted / gangaram
char- should be use when you know that the number of
characters in the coloumn field is constant .ex if the
gender is coloumn with char(1)- so only M and F are the two
options so char(1) is better to use than varchar2.
varchar2- first of all varchar2 is a oracle standard.
varchar2 is nothing but variable characters.
ex- if you have defined the column with varchar2(50) and
when u r inserting the record into that column with only 10
letter/characters then only 10 bits will be used instead of
50.
but if u declare char(50) full 50 bits is allocated for
that column. so even if u enter on 20 characters the space
utilized will be full 50 bits.
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
How to rollback the current transaction in oracle?
I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?
What is the difference between sharding and partitioning?
How to view all columns in an existing table?
Explain oracle left join with an example?
How do I recompile a procedure in oracle?
What is the data pump export utility?
What is memory advisor in Oracle?
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
query optmization techniques and quwry analyser+projects+ppts
What are the uses of a database trigger?
Explain the use of rows option in exp command.
Give syntax for SQL and ORACLE joins.
11. Display the client number and name and the client number and name of the person who referred that client.
What are the execution control statements in oracle?