5.SQL Queries Tcl
5.SQL Queries Tcl
TCL-COMMANDS
• Transaction Control Language(TCL) commands are
used to manage transactions in database.These are
used to manage the changes made by DML
statements. It also allows statements to be grouped
together into logical transactions.
1.Commit command
• Commit command
• Commit command is used to permanently save any
transaaction into database.
• Following is Commit command's syntax,
• commit;
2.Rollback command
• Rollback command
• This command restores the database to last
commited state. It is also use with savepoint
command to jump to a savepoint in a transaction.
• Following is Rollback command's syntax,
• rollback to savepoint-name;
3. Savepoint command