what is the basic diffrence betn a col declared in char(1)
and in varchar(1)
Answers were Sorted based on User's Feedback
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 |
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 |
What are the types of sql server?
How to get the definition of a stored procedure back?
What does top operator do?
How can you transfer data from a text file to a database table? Or how can you export data from a table to a comma delimited (csv) file? Or how can you import data from ms access to a table in a database? Or how can you export data from a table to an excel file?
how to generate XML out of QUERY?
What is 1nf normalization form?
What is SCOPE_IDENTITY() in sql
How create table structure only from tableA to TableB if TableA have some data?
Relational calculus is what type of language?
What is a cursor, index in sql?
How to run sql server 2005 books online on your local system?
What is cursor ? And what is difference between Trigger ?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)