You want the following:
ALTER TABLE mytable MODIFY mycolumn VARCHAR(255);
Columns are nullable by default. As long as the column is not declared UNIQUE
or NOT NULL
, there shouldn’t be any problems.
More Related Contents:
- How can I fix MySQL error #1064?
- 1064 error in CREATE TABLE … TYPE=MYISAM
- Using an Alias in SQL Calculations
- What is the question mark’s significance in MySQL at “WHERE column = ?”?
- What’s the difference between comma separated joins and join on syntax in MySQL? [duplicate]
- How to move columns in a MySQL table?
- MySQL delimiter syntax error
- How to remove constraints from my MySQL table?
- Get Insert Statement for existing row in MySQL
- ALTER TABLE ADD COLUMN takes a long time
- How do I alter a mysql table column defaults?
- GRANT with database name wildcard in MySQL?
- DELETE FROM `table` AS `alias` … WHERE `alias`.`column` … why syntax error?
- INSERT INTO SELECT statement with more columns which is not in another table
- MySQL load NULL values from CSV data
- JOIN queries vs multiple queries
- Calculate difference between two datetimes in MySQL
- What is the maximum length of data I can put in a BLOB column in MySQL?
- Duplicating a MySQL table, indices, and data
- Can’t connect to MySQL server on ‘localhost’ (10061)
- Retrieve last inserted id with Mysql
- How to export data from SQL Server 2005 to MySQL [closed]
- “where 1=1” statement [duplicate]
- mysql select sum group by date
- How to get a list of months between two dates in mysql
- My SQL Dynamic query execute and get ouput into a variable in stored procedure
- MySQL Integer vs DateTime index
- How to check if field is null or empty in MySQL?
- In MySQL what does “Overhead” mean, what is bad about it, and how to fix it?
- Find duplicates in the same table in MySQL