Difference
between CHAR NCHAR VARCHAR VARCHAR2 NVARCHAR
- nchar and nvarchar can
store Unicode characters.
- char and varchar cannot store
Unicode characters.
- char and nchar are fixed-length which
will reserve storage space for number of characters you specify
even if you don't use up all that space.
- varchar and nvarchar are variable-length which
will only use up spaces for the characters you store. It will not
reserve storage like char or nchar.
Difference between Varchar and Varchar2
- VARCHAR is going to be replaced by VARCHAR2 in next version. So, Oracle suggests the use VARCHAR2 instead of VARCHAR while declaring datatype.
- VARCHAR can store up to 2000 bytes of characters while VARCHAR2 can store up to 4000 bytes of characters.
- If we declare datatype as VARCHAR then it will occupy space for NULL values, in case of VARCHAR2 datatype it will not occupy any space.
ReplyDeleteWow,great information. I am sure the info on your blog will help others,Thanks.
Spring Hibernate Training
Spring and Hibernate Training in Chennai
Spring framework Training in Chennai
Spring and Hibernate Training in Chennai
Spring and Hibernate Training
Hibernate Training in Velachery
Spring course in Chennai
Hibernate Training in Tambaram