DBMS Lab-2 (0901CD231057)
DBMS Lab-2 (0901CD231057)
Problem Statement- 1:
1. Create table
Solution:
_____________________________________________________________________
CREATE :
This command is used to create a new table in SQL. The user has to give information like
table name, column names, and their datatypes.
Syntax –
_____________________________________
Name: Rohan Kalme Enroll:0901CD231057 Batch: B2
Practical: 02 August 21, 2024
Problem Statement- 2:
2.Alter table
Solution:
_____________________________________________________________________
ALTER :
This command is used to add, delete or change columns in the existing table. The user needs
to know the existing table name and can do add, delete or modify tasks easily.
Syntax –
Syntax to add a column to an existing table.
Problem Statement- 3:
3.Truncate
Solution:
_____________________________________
TRUNCATE :
This command is used to remove all rows from the table, but the structure of the table still
exists.
Syntax –
Syntax to remove an existing table.
_____________________________________