derDetail表中创建一个插入触发器,它检查Toys表是否存在外键值cToyId。如果没有发现引用,将显示”Toy not found in Toys Table”。
http://blog.csdn.net/jyl15732624861/article/details/51533956