what is the basic diffrence betn a col declared in char(1)
and in varchar(1)

Answer Posted / nilam gandhi

char(1) is a fixed length character data,size character long.
Maximum size 2000 bytes.
Default size is 1 byte.
Varchar(1) is a variable length character string.
And the maximum size of the varchar(1) data type is 4000 bytes.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe in brief system database.

540


What are the differences between lost updates and uncommitted dependencies?

537


What are the two authentication modes in sql server?

600


What it means to be triggered?

496


Is it possible to create trigger on views?

547






How to copy data from one table to another table?

540


How will you add a dimension to cube? : sql server analysis services, ssas

550


Explain optimistic and pessimistic concurrency?

539


What is unpivot?

567


Describe different Processing Modes offered by SSRS?

164


Write a program using SQL queries to find a unique entry in a table.

540


What are the different normalization forms?

610


How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?

509


What is advantage data architect?

507


Where are stored procedures in sql server?

564