Professional Documents
Culture Documents
Models of Database and Database Design: Lecture One
Models of Database and Database Design: Lecture One
DATABASE AND
DATABASE DESIGN
LECTURE ONE
OBJECTIVES
The DDL allows users to specify the data types and structures of the
constraints on the data to be stored in the database.
E.G.
Create table Employees (empid INT UNIQUE NOT NULL, empname
varchar (15), empaddress varchar (25), primary key (empid))
Data Manipulation Language
Statement Description
CREATE TABLE Defines a table in a database
DROP TABLE Deletes a table from a database
Statement Description
SELECT Retrieves and displays one or more
rows from a table
INSERT INTO Adds news rows to a table
UPDATE Changes column values in one or more
rows of a table
DELETE FROM Deletes one or more rows from a table