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.
如何从 sqlite 表中删除一行:
我正在尝试得到“约束失败”错误
sqlite> DELETE FROM cataloge WHERE id = 30; constraint failed
这是表的结构:
Sundar 的回答为我解决了这个问题:
查找以 cataloge.id 作为外键的表。这些表也不能有 30 作为 id 的行。– 桑达尔