sql how to convert column value only if value is not null code example
Example: change sql column from null to not null
ALTER TABLE [TABLE_NAME] CHANGE [COLUMN_NAME] [COLUMN_NAME] [COLUMN_TYPE] NOT NULL DEFAULT [DEFAULT];
ALTER TABLE [TABLE_NAME] CHANGE [COLUMN_NAME] [COLUMN_NAME] [COLUMN_TYPE] NOT NULL DEFAULT [DEFAULT];