Reputation: 3
I am attempting to use ALTER TABLE in MySQL and having no luck. Any feedback is much appreciated.
ALTER TABLE customers
ALTER COLUMN Phone VARCHAR(200) NOT NULL
I can't seem to figure out what is wrong. I already tried:
ALTER TABLE customers
ALTER COLUMN Phone VARCHAR(200) [NOT NULL]
and
ALTER TABLE customers
ALTER COLUMN Phone VARCHAR(200) NOT NULL;
Upvotes: 0
Views: 35
Reputation: 89
Try this if you're using MySQL
ALTER TABLE customers MODIFY COLUMN phone VARCHAR(200) NOT NULL;
Upvotes: 2