alter table column to not null code example
Example 1: change sql column from null to not null
ALTER TABLE [TABLE_NAME] CHANGE [COLUMN_NAME] [COLUMN_NAME] [COLUMN_TYPE] NOT NULL DEFAULT [DEFAULT];
Example 2: update set table column to null
UPDATE [table]
SET [column]=0
WHERE [column] IS NULL;