ALTER TABLE foobar_data MODIFY COLUMN col VARCHAR(255) NOT NULL DEFAULT '{}';
A second possibility which does the same (thanks to juergen_d):
ALTER TABLE foobar_data CHANGE COLUMN col col VARCHAR(255) NOT NULL DEFAULT '{}';
More Related Contents:
- i have an error which i dont understand. can you help me? [closed]
- In SQL Server how to get the count of child if both parent and child are available [closed]
- Delete the entire content of all table in a Database [closed]
- Rank function in MySQL
- MySQL select 10 random rows from 600K rows fast
- Get a list of dates between two dates
- Calculate a running total in MySQL
- Find nearest latitude/longitude with an SQL query
- Simulate lag function in MySQL
- What’s faster, SELECT DISTINCT or GROUP BY in MySQL?
- Get record counts for all tables in MySQL database
- How do I check if a column is empty or null in MySQL?
- Use MySQL spatial extensions to select points inside circle
- INSERT … ON DUPLICATE KEY (do nothing)
- What is this operator in MySQL?
- MySQL create stored procedure syntax with delimiter
- Merge two tables in one SQL query and make the date values unique
- 60 million entries, select entries from a certain month. How to optimize database?
- Is it possible to GROUP BY multiple columns using MySQL?
- MySQL monthly Sale of last 12 months including months with no Sale
- How to find non-existing data from another Table by JOIN?
- How create json format with group-concat mysql?
- MySQL INSERT INTO … VALUES and SELECT
- MySQL LIKE query with underscore
- Compare only day and month with date field in mysql
- What are practical differences between `REPLACE` and `INSERT … ON DUPLICATE KEY UPDATE` in MySQL?
- What is the difference between SQL and MySQL? [closed]
- how to use a like with a join in sql?
- How do you force mysql LIKE to be case sensitive? [duplicate]
- In what order are MySQL JOINs evaluated?