11.4.2.2 compare the data definition language (DDL), and the data manipulation language (DML)
11.4.2.3 describe the basic SQL queries for working with tables in a database: CREATE, ALTER and DROP
SQL queries. Data Definition Language.
What can we do with SQL?
Create new databases
Create new tables
Change the structure of database
Get data from databases
Insert records to database tables
Update records of database tables
Delete records in database tables
SQL (Structured Query Language) is a standard language for accessing and manipulating databases.
Data Definition Language (DDL) is a family of computer languages used in computer programs to describe the structure of databases.
The functions of DDL operators are defined by the first word in a sentence.
DDL is used to create the database strucrure; that is, to define which attributes belong in which tables. It also allows you to cretae users and grant access rights to users.
The PRIMARY KEY constraint uniquely identifies each record in a table.
Primary keys must contain UNIQUE values, and cannot contain NULL values.
A table can have only one primary key, which may consist of single or multiple fields.