阅读背景:

以编程方式执行外键的优点和缺点比在数据库中

来源:互联网 

It is causing so much trouble in terms of development just by letting database enforcing foreign key. Especially during unit test I can’t drop table due to foreign key constrains, I need to create table in such an order that foreign key constrain warning won’t get triggered. In reality I don’t see too much point of letting database enforcing the foreign key constrains. If the application has been properly designed there should not be any manual database manipulation other than select queries. I just want to make sure that I am not digging myself into a hole by not having foreign key constrains in database and leaving it solely to the application’s responsibility. Am I missing anything?It is causing so much trouble in terms of devel




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: