SQL (Structured Query Language) Question:
Download Questions PDF

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

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 Interview Questions And Answers PDF

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?