MySQL variables in ALTER TABLE script
问题 Hello The following procedure will have to move all constraints from one table to the other however I am having some difficulties at the point where the constraint should be deleted. The problem: how do I use variables in the following line ALTER TABLE var_referenced_table_name DROP FOREIGN KEY var_constraint_name; when I use as is, I receive the following error Error Code: 1146. Table 'oaf_businesslink_dev.var_referenced_table_name' doesn't exist MySQL does not recognise var_referenced_table