The document details the steps to create a database called Pawan_k, create a table called Students within that database to store details of students including name, roll number, branch, subject, and marks. It then inserts details of 10 students into the Students table and uses select, describe, and show commands to view the stored data and table structure.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
35 views2 pages
Practical 1 DBMS
The document details the steps to create a database called Pawan_k, create a table called Students within that database to store details of students including name, roll number, branch, subject, and marks. It then inserts details of 10 students into the Students table and uses select, describe, and show commands to view the stored data and table structure.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
Practical 1.
Create a Database Input Commands:-
create database Pawan_k;
use Pawan_k; create table Students(Sr int,Name varchar(20),Roll_no int, Branch varchar(7),Subject varchar(10),Marks int); insert into Students values(1,'Pawan',193009,'CSE','DBMS',100); insert into Students values(2,'Lakshya',197001,'CSE','DBMS',98); insert into Students values(3,'Namit',197002,'CSE','DBMS',97); insert into Students values(4,'Mohan',197003,'CSE','DBMS',89); insert into Students values(5,'Aaush',197004,'CSE','DBMS',95); insert into Students values(6,'Lokesh',197005,'CSE','DBMS',89); insert into Students values(7,'Rohan',197006,'CSE','DBMS',91); insert into Students values(8,'Sahdev',197007,'CSE','DBMS',90); insert into Students values(9,'Sahil',197008,'CSE','DBMS',80); insert into Students values(10,'Devendera',197009,'CSE','DBMS',95);
Select *from Students;
Output:-
Describe command:- use Pawan_k; desc Students; Output:-