Basics
Commands
Data Definition Language (DDL)
a set of statements used to define database objects
Data Control Language (DCL)
a set of statements used to manage security permissions for users and objects
Data Manipulation Language (DML)
a set of statements that are used to query or modify data
DDL | DCL | DML |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Constraints
a set of rules to maintain accuracy, integrity and reliability of a database
Constraints | Description |
---|---|
| Ensures that a column cannot have a NULL value |
| Ensures that all values in a column are different |
| A combination of a |
| Prevents actions that would destroy links between tables. A |
| Ensures that the values in a column satisfies a specific condition |
| Sets a default value for a column if no value is specified |
| Used to create and retrieve data from the database very quickly |
A table with a Composite Key does not have a unique key for each row in the table. Instead a combination of two or more columns serves as a unique identifier for each row.
Last updated