"error when trying to update sqlite database in android" Code Answer


the documentation says:

if foreign key constraints are enabled, a drop table command performs an implicit delete from command before removing the table from the database schema. […] if the implicit delete from executed as part of a drop table command violates any immediate foreign key constraints, an error is returned and the table is not dropped.

remove the data in the correct order so that all intermediate steps are valid. or just disable foreign constraint checking (db.setforeignkeyconstraintsenabled()).

By Bkkbrad on August 20 2022

Answers related to “error when trying to update sqlite database in android”

Only authorized users can answer the Search term. Please sign in first, or register a free account.