Database 1st Lab Notes
Database 1st Lab Notes
DBMS Layers :
Layer Definition
Physical where the data is stored (table spaces)
layers
Logical schema of this stored data (the keys , relationships between tables ,
Layers constraints...)
External how to use this database
Layers
SQL language :
used to interact with oracle database , which is composed of commands
DDL (data DML (data DCL(data TCL(Transaction
definition manipulation control control Language)
Language) language) language)
- CREATE - INSERT(adds (control - COMMIT (saves all
- ALTER rows to table) acess to changes permenantly)
- DROP(deletes - DELETE database) - ROLLBACK (Reverts
database objects) - UPDATE - GRANT all changes made in the
- TRUNCATE (update existing (Provides transaction to the last
(removes all rows data in a table) privileges to commit.)
but keeps structure - MERGE users or roles)
fro future use) -REVOKE
- RENAME (remove
- COMMENT priviledge)