What is the difference between varchar and varchar2

Hello

can someone tell me difference between varchar and varchar2

Thank you
Chantal

>
can someone tell me difference between varchar and varchar2
>

See VARCHAR2 and VARCHAR in the section of the doc of the SQL language data types
>
The VARCHAR2 data type
The VARCHAR2 data type specifies a variable-length character string. When you create a VARCHAR2 column, you specify the maximum number of bytes or characters of data it can hold. Oracle then stores each value in the column exactly as you specify, provided that the value does not exceed the maximum length of the column. If you try to insert a value that is greater than the specified length, then Oracle returns an error.

The VARCHAR data type
Do not use the VARCHAR data type. Use the VARCHAR2 data type. Although the VARCHAR data type is currently synonymous with the VARCHAR2, VARCHAR data type is programmed to be redefined as a separate datatype used for character strings of variable length compared to different comparison semantics.

Tags: Database

Similar Questions

Maybe you are looking for