Home TechnologyProgrammingJava Subscribe to RSS

How Will You Insert And Delete With A Single Java Connection When You Have Referential Integrity?

Answer Question

1 Answer - Sort by: Date | Rating

    When you have referential integrity, you basically have coupled tables which are consistent in a relational database. Referential integrity is enforced by the combination of a primary key (which is also known as a candidate key) and a foreign key. For referential integrity to hold, it is necessary that any field in the table which is declared a foreign key contains only those values for the primary key or the candidate key from the parent table.

    You can easily delete or insert a record which contains a value which has been referred to by a foreign key in another table but this would break the referential integrity. The relational database management system is abbreviated as the RDBMS. It usually enforces referential integrity either by deleting the rows of foreign keys to maintain the integrity or by returning an error and not performing the delete function. The method which is to be used is defined by the defined by the referential integrity constraint.
    0 0

    Fullon 

    answered 3 years ago

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International