CHANGE CONSTRAINTS FROM NULL TO PRIMARY KEY

So I created a column on a table, but I forgot to make it NOT NULL. So my solution here is to:

  1. drop the constraint
  2. add the constraint of a PRIMARY KEY to that column.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top