By mistake I have created my tables with data type int(200), varchar(200), double(200,2) in MySQL. Now I want to change it to int(20), varchar(20), double(20,2). Since the database is very big changing them one by one is a very very difficult task. I am not sure but I think following SQL can do it-
UPDATE INFORMATION_SCHEMA.COLUMNS
SET COLUMN_TYPE='INT(20)'
WHERE COLUMN_TYPE='INT(200)'
AND TABLE_SCHEMA = 'DATABASE_NAME';
Will it solve my problem and is it safe to do that.
Thanks in advance.