Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Control transactions
EMP
EMPNO ENAME JOB ... DEPTNO
Format:
WHERE fieldname operator expression
Operators
Equal (=)
Greater than, Less than (>, <)
Greater than or Equal to (>=)
Less than or Equal to (<=)
Not equal (< >, !=, ^=)
LIKE
BETWEEN
IN
NOT IN
By: Deepak Malusare
Search Condition Examples
UPDATE emp
*
ERROR at line 1:
ORA-02291: integrity constraint (USR.EMP_DEPTNO_FK)
violated - parent key not found
System crashes
ROLLBACK to Savepoint B
ROLLBACK to Savepoint A
ROLLBACK
Used to mark
individual sections
of a transaction
You can roll back
a transaction to a
savepoint
Syntax:
TRUNCATE TABLE tablename;
Statement Description
Syntax:
CREATE SEQUENCE sequence_name
[optional parameters];
Example:
CREATE SEQUENCE f_id_sequence
START WITH 200;