-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDBMSnotes
More file actions
39 lines (32 loc) · 1.24 KB
/
DBMSnotes
File metadata and controls
39 lines (32 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
DDL
========
Data Definition Language.
Create - To create objects in the database
Alter - Alters the structure of the atabase
Drop - Delete objects from the database
Truncate- Remove all records from a table, including all space allocated
Comment - Add comments to the data dictionary
Rename - Rename an object
DML
========
Data Manipulation Language.
Select - Retrieve data from a table in database
Insert - Insert data into a table
Update - Updates the existing data within a table
Delete - Deletes all records from a table, but doesn't delete the space allocated
Merge - UPSERT operation (Insert or update)
Call - call a PL/SQL or Java subprogram
Explain Plan - Explain access path to data
Lock Table - control concurrency
DCL
=======
Data Control Language (DCL)
Grant - Gives users access privileges to database
Revoke - Withdraw access privileges given with the GRANT command
TCL
========
Transaction Control Language.
Commit - save work done.
Savepoint - identify a point in a transaction to which you can later rollback
Rollback - Restore database to original since the last commit
Set Transaction - Change transaction options like isolation level and what rollback segment to use