730 0 0 0
Last Updated : 2025-04-28 18:44:04
Some times, You will find yourself trapped into a situation where you need to change a column datatype or length, But this column is already used in PK-FK relationship and the solution for this is disable the SET foreign_key_checks = 0; then change the datatype and then re-enable it after you finish the update.
SET foreign_key_checks = 0; //Disable it
Set the updates
SET foreign_key_checks = 1; //Re-enable it