Posts

for loop - syntax and explaination

The for loop :- Syntax:                    for (initialization;condition ;increase)                           {         ---------;                                     statement;                            } and its main function is to repeat statement while condition remains true , like the while loop . But in addition ,for provides places to specify an initialization instruction and an increase instruction . The three expression inside for loop have to be separated by semicolon. ...

ACID properties of transaction

Transaction :-                       A transaction is collection of operations that performs a single logical function in a database application that may lead to success or failure in operation maintaining integrity. ACID properties of transaction :- Atomicity : - Transaction must be either performed full or not at all. It will run to completion as as individual unit ,at the end of which either no change have occurred to database or database has been changed in consistent manner . At the end of transaction update it will be accessible to all. Consistency :- A correct execution of transaction must take DB from one consistent state to another, programmer is responsible for this. This property implies that if database was in consistent state before start of transaction ,then at any time of termination too it must be consistent. Independence:- Transaction must not make...