What is the difference between CHAR and VARCHAR data types?
Answers were Sorted based on User's Feedback
Answer / rajan vardawaj
CHAR is a fixed length data type. CHAR(n) will take n
characters of storage even if you enter less than n
characters to that column. For example, “Hello!”
will be stored as “Hello! ” in CHAR(10) column. VARCHAR is a
variable length data type. VARCHAR(n) will take only the
required storage for the actual number
of [...]
| Is This Answer Correct ? | 27 Yes | 2 No |
Answer / shekoli
Char is a fixed lenth datatype. Ex: char(7), welcome
but varchar is a variable length datatypes, Ex:
varchar(7),welcome (or) come
| Is This Answer Correct ? | 1 Yes | 0 No |
What is memory table in mysql?
Explain the difference between MyISAM Static and MyISAM Dynamic?
Where is the mysql config file?
why not null is not allowed at table level
What is the difference between mysql_fetch_array() and ysql_fetch_object() ?
how to display nth highest salary from a table in a mysql query? : Mysql dba
How many ways to get the current time?
what is the difrence between sql and pl/sql
Can we rollback truncate in mysql?
Which statement is used in a select query for partial matching?
What happens when the column is set to AUTO INCREMENT and you reach the maximum value for that table?
What are the types of queries?
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)