Difference between CHAR and VARCHAR?
Answer / Mithilesh Kumar Pandey
In MySQL, the main difference between CHAR and VARCHAR is that CHAR uses a fixed length for storing data, while VARCHAR uses variable length. For example, if you create a CHAR column with a length of 10, it will always take up 10 bytes, even if you store a smaller value. On the other hand, VARCHAR only takes as many bytes as necessary to store the data.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is mysql procedure?
What is view? How can you create and drop view in mysql?
Write a query to find duplicate rows in table?
How does limit work in mysql?
How will you export tables as an xml file in mysql?
Is mysqli faster than mysql?
How to extract a unit value from a date and time?
What is acid in mysql?
List data types in mysql? Explain
What does do in mysql?
How to present a past time in hours, minutes and seconds?
Where is the mysql config file?
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)