@erhsaikhasif Take a look at Database Transactions and if you have any further question comment here.
Nov 20, 2016
3
Level 1
How to insert bunch of records in table, using transaction complete or rollback concept?
Hello, I have to insert the multiple records in student table using post method. I will send this student entry in json array. But the insertion process must be either insert all or none. There is a concept in SQL either transaction all or none or rollback. How can I achieve this? If you have alternative solution for this then please suggest me. I tried this by using foreach loop , but their is no guarantee of insertion of all records. Please help me. Thanks.
Level 48
1 like
Please or to participate in this conversation.