Professional Documents
Culture Documents
1
Student Name: ANIKET KUMAR Branch: BE-CSE
UID: 21BCS10117 Section/Group: 21BCS-906(B)
Date of performance: Subject name: Data Structures
AIM:
To perform SQL commands
REQUIREMENT:
ORACLE DBMS SOFTWARE
Drop Command
drop table table_name;(syntax)
The drop command in SQL is used to remove the whole table including data
present inside it, indexes, triggers, constraints, and permission specifications for
that particular table
Truncate Command
truncate table table_name;
this statement delete all rows from a table without deleting the structure of Table
DML (DATA MANIPULATION
LANGUAGE)
INSERT Command
INSERT INTO table1 (column1, column2) SELECT column1, column2 FROM
table2 WHERE condition1;);(syntax)
You can use the INSERT statement to query data from one or more tables and
insert it into another table
Select Command(*)
Select * from table_name; (syntax)
. The SELECT Statement in SQL is used to retrieve or fetch data from a database.
We can fetch either the entire table or according to some specified rules
SELECT COMMAND (FIELD_Name)
Select field1_name,field3_name from table_name;
Update Command
update table_name set field_name=value where field_name_2=value;
The UPDATE command for SQL is used to modify the existing data in a SQL
table.
Delete Command
delete from table_name where field_name=value;