Change Column Definitions in MySQL

by Gilbert Keith

This is apparently the correct way to change definitions on a column. Of course, don’t do it if your table already has data in it.

 

Adding NOT NULL constraint

Advertisements