ALTER TABLE table_name CHANGE column_name column_name VARCHAR(100).
Tag: VARCHAR
Difference between CHAR and VARCHAR?
Following are the differences between CHAR and VARCHAR:
- CHAR and VARCHAR types differ in storage and retrieval
- CHAR column length is fixed to the length that is declared while creating table. The length value ranges from 1 and 255
- When CHAR values are stored then they are right padded using spaces to specific length. Trailing spaces are removed when CHAR values are retrieved.
Give string types available for column?
The string types are:
- SET
- BLOB
- ENUM
- CHAR
- TEXT
- VARCHAR