Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
28 views1 page

DB Lab 01

The document outlines a lab exercise for a Database Systems course focused on MySQL. It includes tasks such as displaying existing databases, creating a 'BookShop' database, defining tables for 'Book' and 'Publisher', and performing operations like displaying table structures and removing tables and databases. The exercise aims to familiarize students with basic MySQL commands and database management.
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)
28 views1 page

DB Lab 01

The document outlines a lab exercise for a Database Systems course focused on MySQL. It includes tasks such as displaying existing databases, creating a 'BookShop' database, defining tables for 'Book' and 'Publisher', and performing operations like displaying table structures and removing tables and databases. The exercise aims to familiarize students with basic MySQL commands and database management.
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/ 1

CO226-Apr2025 : Database Systems

Lab 01 : Introduction to MySQL

Perform the following tasks using MySQL.

1.​ Display all the existing databases in MySQL server host.


2.​ Create a database called “BookShop”
3.​ Select or access the “BookShop” database.
4.​ Within that database, create a table called “Book” with the following fields.

Field Name Type Field Size

BookID Text 5

Title Text 50

Author Text 30

Category Number

Price Currency 8,2

PubID Text 6

5.​ Display the structure of the “Book” table.


6.​ Create another table called “Publisher” with the following fields.

Field Name Type Field Size

PubID Text 6

PublisherName Text 30

RegisteredDate Date

Country Text 15

7.​ Display the structure of the “Publisher” table.


8.​ Display all the tables in the “BookShop” database.
9.​ Remove the table “Book”.
10.​Remove the database “BookShop”.

You might also like