You are on page 1of 2

COMMANDS

---------
set pagesize 40
set linesize 100
set heading off
set heading on
Ttitle<set title>
Btitle<set title>
TTitle off
Btitle off
show user
set feedback off
set feedback on
set timing on
set timing off
==============================================

Substitution variable ------------ &


select &a+&b from dual
constant variable -------------------&&
select &a+&&b from dual
undefine b
================================================
@c:/new/query.txt
spool c:new/sample.txt
spool off

-----------------------------------------------------------------------------------
--------

TCL- TRANSACTIONAL CONTROL LANGUAGE


-----------------------------------

1)COMMIT
2)ROLLBACK
3)SAVEPOINT

1)COMMIT-USED TO SAVE ALL THE PENDING TRANSACTIONSOR TEMP TRANSACTIONS PERMAMNENTLY


INTO TH DBse.

create dbse

DDL CREATE -directly into dbse


ALTER permanent transactions
RENAME
TRUNCATE autocommit
DROP

DML INSERT -TEMP MEMORY


UPDATE TEMP TRANSACTION
DELETE
MERGE
2)Roll back-eliminates temp values

3)SAVEPOINT-partial rollback

1 naren
2 larry
3 garry
4 sanjay
----------------------------------rollback;
5 divakar
6 kumar
------save point a
7 langer
-----pending stage--rollback to a,

You might also like