I want to remove constraints from my table. My query is:
ALTER TABLE `tbl_magazine_issue`
DROP CONSTRAINT `FK_tbl_magazine_issue_mst_users`
But I got an error:
#1064
- 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 'constraintFK_tbl_magazine_issue_mst_users
' at line 1
CHECK
constraint, there is no need to drop it because no actual constraint is created. You can select frominformation_schema.table_constraints
to verify, and you can even run theadd constraint
over and over again without any error. MySQL does not supportCHECK
constraints but allows the SQL intended to create them (without actually creating the constraints). – ADTC