Unit 4b Flashcards
Primary storage objects within database
Tables
Row data must adhere to rules
Table Constraints
Column entry for row must have data
NOT NULL Table Restraint
Allows value to be stored only if that value doesn’t already exist in the column
UNIQUE Table Restraint
Column entry for row may or may not have data
NULL Table Restraint
Uniquely identifies every row stored within table
PRIMARY KEY Table Restraint
Signifies key is used as Primary Key in different table, applied to child table, not parent
FOREIGN KEY Table Restraint
Allows storage of fixed-length character string
CHAR()
no value stored (char with no specified size is
assumed to be 1)
CHAR
value stored ‘‘dog ‘’ (7 wasted spaces)
CHAR(10)
Add new row of data into Table
INSERT INTO Command
Change existing value for a row(s) or column(s) in table
UPDATE Command
Allows deleting of table rows
DELETE Command
Deleting table from database
DROP TABLE Command