Xii Ip
Xii Ip
BY-HENA FATMA
PGT CS
Sql commands
DML - Enters new rows, changes existing rows, and removes unwanted rows from tables in
the database, respectively.
DDL - Sets up, changes, and removes data structures from tables.
TCL - Manages the changes made by DML statements. Changes to the data can be grouped
together into logical transactions.
DCL - Gives or removes access rights to both the Oracle database and the structures within
it.
DDL : Data Definition Language
All DDL commands are auto-committed. That means it saves all the
changes permanently in the database
Command Description
Data Manipulation Language (DML) statements are used for managing data in
database. DML commands are not auto-committed. It means changes made
by DML command are not permanent to database, it can be rolled back.
Command Description
Union UNION
General Structure
Example 1:
City Year Cars_sold
Now we will use a SELECT statement to display data of the table, based on a condition, which we
will add to the SELECT query using WHERE clause.
SELECT s_id,
s_name,
age,
address
from Student WHERE s_id=101;