Skip to content
Advertisement

Alter SQL table – allow NULL column value

Initially, the table “MyTable” has been defined in the following way:

How to update it in such a way that the column “Col 3” would be allowed to be NULL?

Advertisement

Answer

The following MySQL statement should modify your column to accept NULLs.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement