Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8999615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:12:13+00:00 2026-06-16T00:12:13+00:00

Well, in SQLLite there is not exist the possibility to delete on cascade, or

  • 0

Well, in SQLLite there is not exist the possibility to delete on cascade, or I don’t know how.

Imagine that I have two tables, Table A and Table B. The table B has the IDtableA field, because is a child, and imagine that I have the following situation:

1.- user A load record 1 from TableA and load it in the context.
2.- user A load all the child records from table B.
3.- user B add a new record to table B that is child of table A.
4.- user A save changes and delete record 1 and all the childs that he loaded in the first time, but not include the new child add by the user B.

So in SqlLite I don’t have a model, neither realationships between tables, when user B add a new child, not check if the parent exists.

is it posible ensure reference integrity in Sqlite?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:12:14+00:00Added an answer on June 16, 2026 at 12:12 am

    SQLite supports foreign keys and “on delete cascade”, but in the new versions.

    You can see this article in official SQLite website:

    sqlite.org/foreignkeys.html

    The say:

    This document describes the support for SQL foreign key constraints
    introduced in SQLite version 3.6.19.

    Also, you have to explicitly enable foreign keys for every connection.

    this question may help you: Enabling Foreign key constraints in SQLite

    You can do it by changing the connection string and add:

    foreign keys=true; 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, my website can not redirect to https://www.facebook.com/QuaFootSpa from http://quafootspa.com/ I have tried redirection
I have few activities that make use of sqlite database, there is use of
I need to use Sqlite, but there's a problem with my syntax (well that's
well i have a configuration like this in the components part of my config
Well, I have a application which somehow requires some system resources, but how do
well there are 3 activities say Act1 , Act2 and Act3 . in Act1
Possible Duplicate: Can’t create handler inside thread that has not called Looper.prepare() inside AsyncTask
In a cocoa app of mine, there is a method that does some operations
I use temporary tables in an SQLite based iPhone application. Performance was not as
I would like to use sqlite (using Java JDBC, not sure if that matters)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.