I have created two tables ORDERS and ORDERITEMS with the following constraint:
alter table OrderItems add constraint FK_Reference_30 foreign key (orderId)
references Orders (orderId) on delete restrict on update restrict;
If I want delete one entry in ORDERS table and that orderId is used in ORDERITEMS table, I should get error or warning, I think. But actually I got nothing. I inserted two rows in ORDERS and few rows in ORDERITEMS. When I tried to delete all rows in ORDERS, I did it. No complaint. I am using MySQL database with Toad for MySQL.