SQL (Structured Query Language) Question: Download SQL PDF

What is difference between CHAR and VARCHAR2? What is the maximum SIZE allowed for each type?

Tweet Share WhatsApp

Answer:

CHAR pads blank spaces to the maximum length.
VARCHAR2 does not pad blank spaces.
For CHAR the maximum length is 255 and 2000 for VARCHAR2.

Download SQL PDF Read All 172 SQL Questions
Previous QuestionNext Question
What is ON DELETE CASCADE?What are the pre-requisites to modify datatype of a column and to add a column with NOT NULL constraint?