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

Answer Posted / penchal das

Char is static in size where as Varchar is dynamic in size.

if we use char(15) and we have used only 10 charectes then remaining memory space will be wasted.

In case of Varchar(15) if use 10 chars remaining memory space will be freed.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to overcome kernel isssues

1168


List out what other servers you can use with ssrs?

89


How can I get data from a database on another server?

507


Is truncate a dml command?

499


SQL Server Architecture ?

1923






How to create percentile function?

108


What is dbcc?

731


What is resource governor?

543


How to Check if table exists in sql server?

617


What is query optimizer in sql server?

543


What is the difference between dropping a database and taking a database offline?

695


What are the restrictions that views have to follow? : SQL Server Architecture

527


Which tcp/ip port does sql server run on? How can it be changed?

567


Detail about query optimizer?

609


What are the database objects? : SQL Server Architecture

549