Difference between "VARCHAR" and "VARCHAR2" datatypes?

Questions by Beena   answers by Beena

Showing Answers 1 - 15 of 15 Answers

Ketan Pathak

  • Oct 11th, 2005
 

The other difference is that, varchar occupy total length which is define to create database while the varchar2 occupy the total length of the given string.

  Was this answer useful?  Yes

Ajay Sharma

  • Oct 19th, 2005
 

Both VARCHAR and VARCHAR2 are same. ORACLE may remove VARCHAR in its future version.

  Was this answer useful?  Yes

dhanunjay valisetty

  • Nov 8th, 2005
 

dear friend... here is small clarification w.r.t your answer reg...

The VARCHAR datatype is actually a subtype of VARCHAR2, with the same range of values found in VARCHAR2. VARCHAR, in other words, is currently synonymous with VARCHAR2. Use of VARCHAR offers compatibility with ANSI and IBM relational databases. There is a strong possibility, however, that VARCHAR's meaning might change in a new version of the ANSI SQL standards. Oracle recommends that you avoid using VARCHAR if at all possible, and instead stick with VARCHAR2 to declare variable-length PL/SQL variables (and table columns as well).

cheerz..

dhanunjay

Ketan Pathak Wrote: The other difference is that, varchar occupy total length which is define to create database while the varchar2 occupy the total length of the given string.

helper

  • Aug 21st, 2006
 

Varchar and Varchar2 differs only by space.

2000 byes is allocated for varchar and 4000 bytes for varchar2

  Was this answer useful?  Yes

shravan

  • Oct 27th, 2006
 

  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.

  Was this answer useful?  Yes

kumars77

  • May 1st, 2008
 

This is not right ans because varchar datatype store more than 2000 character i checked it no error found so plz anbody give right ans

  Was this answer useful?  Yes

smithanair

  • Sep 17th, 2008
 

VARCHAR is used to store alphanumeric values without padding unused memory locations. But VARCHAR2 is used to store alphanumeric values with padding unused memory locations. so using VARCHAR2 we are saving memory locations.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions