5 SQL DDL
5 SQL DDL
1.Data Definition
2.Data Manipulation
3.Data Control
ALTER
2 Modifies an existing database object, such as a table.
DROP
Deletes an entire table, a view of a table or other
3
objects in the database.
Data Manipulation Language (DML)
Sr.No. Command & Description
SELECT
1
Retrieves certain records from one or more tables.
INSERT
2 Creates a record.
UPDATE
3 Modifies records.
DELETE
4 Deletes records.
Data Control Language (DCL)
Syntax
Example
syntax:
Orders" table:
Indexes are used to retrieve data from the database very fast.
The users cannot see the indexes, they are just used to speed
up searches/queries.
The SQL INSERT INTO Statement
If you are adding values for all the columns of the table, you
do not need to specify the column names in the SQL query.