Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下疑问SET FOREIGN_KEY_CHECKS = 0Sybase 中是否有类似的东西?
SET FOREIGN_KEY_CHECKS = 0
我想运行这个查询:
SET FOREIGN_KEY_CHECKS = 0 DELETE FROM table WHERE fieldT = 201 AND fieldN = 3992; SET FOREIGN_KEY_CHECKS = 1
提前致谢。
你运气不好。没有这样的东西。但是即使您能够做到这一点,当您从引用的表中删除数据时,它也会抛出错误,因此将不允许创建 FK。最好的方法是。从引用表中删除,然后从引用表中删除。这不仅是最好的方法,而且对您的数据完整性非常重要,这一点非常重要。