adspace


what is the difference between char and varchar data types? : Sql dba

Answer Posted / Husna Tabassum

The CHAR data type in SQL maintains a fixed length for each character field, even if the actual data stored is shorter. If the string is shorter than the specified length, it will be padded with spaces on the right side. On the other hand, the VARCHAR data type stores variable-length strings of up to a maximum size and does not pad spaces. This makes VARCHAR more space-efficient compared to CHAR.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best sql course?

1050


Is inner join faster than left join?

1276


Can delete statement be rollbacked?

1054


how to use regular expression in pattern match conditions? : Sql dba

1113


what is dbms? : Sql dba

1061


What is the current version of postgresql?

1178


Can we use distinct and group by together?

1133


define sql insert statement ? : Sql dba

1098


Do we need to rebuild index after truncate?

1138


What is your daily office routine?

2346


what are the advantages of sql ? : Sql dba

1142


If a cursor is open, how can we find in a pl/sql block?

1238


Is primary key clustered index?

1019


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2091


what are all the common sql function? : Sql dba

1131