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 |
Can a table be created inside a trigger?
How do indexes help, types?
how to connect sybase to sql server 2005?.
What is ddl and dml commands?
What is the significance of master, tempdb and model databases?
What is transactional replication?
What is relationship? What number of sorts of relationship are there?
explain declarative management framework (dmf) in sql server 2008?
How to return the date part only from a sql server datetime datatype?
What are the 7 disadvantages to a manual system?
How will u find the query which is running in some other machine
4 Answers CarrizalSoft Technologies, IBM,
Do you know what is fill factor and pad index?
Oracle (3253)
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)