且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

删除SQL中的记录时出现问题

更新时间:2022-06-17 00:43:41

你有三个选择:

You have three options:


  1. 您只允许在任何SchoolBusRoutes未使用的情况下删除BusRoute。
  2. 您始终会删除使用该BusRoute的所有SchoolBusRoute。
  3. 您断开连接BusRoute的SchoolBusRoute设置为另一个BusRouteId或NULL。



否则外键将允许您删除BusRoute。


Otherwise the foreign key will nto allow you to delete the BusRoute.