So Theoretically is it possible to insert information partially in the database when we use transactions. For example the insert happens and suddenly we lose electricity. Will there be a case when one record will be written to tableA and it wouldn’t be written to tableB?
So Theoretically is it possible to insert information partially in the database when we
Share
Self explained in begin transaction manual:
The answer is no: it is not possible. For your scenario, is TableA and TableB inserts are both in same transaction, due to ACID behavior, if ‘lose electricity’ occurs between inserts, when database go up, TableA insert is rolled back. Remember the A of atomic.