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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -