Database 12
Database 12
Domain: A domain is the sets of values from which the actual values appearing in a given column are
drawn.
Primary Key: A column or set of columns that uniquely identifies a row within a table is called
primary key.
Candidate Key: Candidate keys are set of fields (columns with unique values) in the relation that are
eligible to act as a primary key.
Alternate Key: A candidate key that is not the primary key is called alternate key.
SHOW tables;
2) CREATING DATABASE:
3)OPENING DATABASE:
4)DROPPING DATABASES:
#DROP:USED TO REMOVE OR DELETE THE TABLE COMPLETELY .IF U DROP A TABLE ALL THE ROWS
AND THE STRUCTURE GETS DELETED
SYNTAX;
EXAMPLE:
SYNTAX:
WHERE <CONDITION>;
EXAMPLE;
Q2.