📜  语法错误或访问冲突:1701 无法截断外键约束中引用的表 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:36.508000             🧑  作者: Mango

代码示例2
As the error says, you can not truncate tables referenced by foreign keys. 
Delete should work though...

DB::table('some_table')->delete();