w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Prevent database corrupt when save because of bad WiFi connection

You need to use a transaction to perform multiple DB queries. The advantage is that if one of the query fails in the execution, all of the previous that were executed get undone in the database. That way you don't have any corrupted or incomplete data in your DB.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.