how to change null to not null in sql 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: sql from null to not null
ALTER TABLE ime_tabele
ALTER stolpec SET NOT NULL;