I wrote this query:
ALTER TABLE test2 add constraint setting_value33 default male FOR namee;
But I get this error when running it:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'default male FOR namee' at line 1
Best Answer
This is a rather contrived example, but you'll get the idea.
Check here.