Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / 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

More SQL Server Interview Questions

What stored by the model? : sql server database administration

0 Answers  


Do you know what is a with(nolock)?

0 Answers  


What do you understand by a view? What does the with check option clause for a view do?

0 Answers  


What is the maximum number of index per table?

0 Answers  


Explain what are sparse columns?

0 Answers  


What is dknf in normalization form?

0 Answers  


How do I clean up sql server transaction log?

0 Answers  


What is an example of a primary key?

0 Answers  


What is the sql server agent?

0 Answers  


What is a partitioned view?

0 Answers  


How to insert multiple rows with one insert statement in ms sql server?

0 Answers  


where the connection string store in the database

0 Answers   HCL, Wipro,


Categories