0% found this document useful (0 votes)
24 views

Dbms Constraints

The document outlines steps for creating and manipulating database tables including creating tables, adding and dropping constraints like unique, primary key, foreign key, check and default constraints, inserting data, and displaying table contents and constraints.

Uploaded by

mikku ninavi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Dbms Constraints

The document outlines steps for creating and manipulating database tables including creating tables, adding and dropping constraints like unique, primary key, foreign key, check and default constraints, inserting data, and displaying table contents and constraints.

Uploaded by

mikku ninavi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Name: Dona Mary Jose

Reg. No.: 20MID0055

Principles of Database Systems Lab


Digital Assignment 2

Create table person

Create table tickets

Unique constraint
Dropping unique constraint

Not null constraint


Deleting all rows from table person

Adding Primary key constraint to table person (without constraint name)

Adding foreign key constraint to table tickets (with constraint name)

Insert values to table person


Display table person

Insert values into table tickets


Displaying all the rows in table tickets

Displaying all the constraints from table person

Displaying all the constraints from table tickets


Disabling/Enable foreign key constraint from table tickets

Droping foreign key and primary key constraints

Adding check constraint to table person

Drop check constraint


Default constraint

Dropping all the tables

You might also like