How to change the action when ON UPDATE / ON DELETE in MySQL? Here is the table now:
CONSTRAINT `FK_orders_order` FOREIGN KEY (`order_idorder`) REFERENCES `order` (`idorder`) ON UPDATE NO ACTION ON DELETE NO ACTION But I make such a request:
ALTER TABLE `orders` ADD CONSTRAINT `FK_orders_order` FOREIGN KEY (`order_idorder`) REFERENCES `order` (`idorder`) ON UPDATE SET NULL ON DELETE SET NULL; I get a mistake, how to fix it? What's wrong doing
alter table orders drop foreign key FK_orders_order? - Mike(NO ACTION или RESTRICT)then it is created and if I do what I need(CASCADE или SET NULL)then throws an error - rodgerson update. the directory says only abouton deletemysql.ru/docs/man/SEC451.html - Mike