Lesson 5 Flashcards
CREATE TABLE
SQL statement that is used to create a new table in a database.
ALTER TABLE
Used to alter or change the structure of existing database table.
Constraint
A rule for data in the database.
PRIMARY KEY (PK)
The column that uniquely identifies each row in the table.
FOREIGN KEY (FK)
Used to relate or link two tables together.
Data Types
Defines what value the column can store.
nvarchar
Variable width that hold string and unicode data.
Int
Holds whole numbers.
Decimal (p,s)
Holds numbers with decimals.
Date
Stores only date data.
NULL
Constraint that indicates the data column can be empty of data.
NOT NULL
Constraint that insures data is always entered in a column.
DROP TABLE
Statement to remove a table, and all the data rows from the database.
Debugging
Making corrections to remove bugs or errors in the code.