plsql - does VARCHAR increase the capacity of the variable assigned to it? -


city char(10), street varchar(10) 

one thing understood varchar having variable length . in above case - if name of street more 10 characters - increase size again 10 units default ? . please clarify .

no, error if try insert larger string.

database sql language reference:

varchar2 data type
varchar2 data type specifies variable-length character string. when create varchar2 column, supply maximum number of bytes or characters of data can hold. oracle subsequently stores each value in column specify it, provided value not exceed maximum length of column. if try insert value exceeds specified length, oracle returns error.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -