Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary DBMS lab programs

Rating
-
Sold
-
Pages
11
Uploaded on
15-01-2025
Written in
2024/2025

It's is usefull for 1st year students who all are studying database management system language.Using this lab programs you can learn easily

Institution
Course

Content preview

Program -1
# cd c:\xampp\mysql\bin


# mysql.exe -u root


MariaDB [(none)]> create database joe;

MariaDB [(none)]> show databases;

MariaDB [(none)]> use joe;
Database changed

MariaDB [joe]> show tables;

Clear Screen : \! cls

, Program -02
Aim:
To create and record handling using SQL queries.
 INSERT statement
 Using SELECT and INSERT together
 DELETE, UPDATE, TRUNCATE statements
 DROP, ALTER statements


Queries:
CREATE:
CREATE TABLE Students( id int primary key, name varchar(50) not null, address text,
phone varchar(10)unique, Sub1 int not null,sub2 int not null, Place VARCHAR(20)
DEFAULT 'Erode');


DESCRIBE:
Desc students;


INSERT
insert into Students( id , name , address , phone ,
Sub1,sub2)values(20241001,'Ajay',thindal,9600670999,85,89);
insert into Students( id , name , address , phone ,
Sub1 ,sub2)values(20241010,'Ram','thindal',9600674569,85,89),
(20241005,'balu','perund
urai',9578587143,92,65);
insert into Students values(20241014,'Ramesh','thindal',9611674569,85,85,'palladam'),
(20241015,'babu','perundurai',9578555143,92,65,'bhavani');


SELECT:
select * from students;


SQL ALTER TABLE Statement
ALTER TABLE students ADD email varchar(10);
ALTER TABLE students MODIFY COLUMN sub1 varchar(5);
ALTER TABLE students CHANGE name fullname VARCHAR(55);

Connected book

Written for

Institution
Course

Document information

Summarized whole book?
No
Which chapters are summarized?
Unknown
Uploaded on
January 15, 2025
Number of pages
11
Written in
2024/2025
Type
SUMMARY

Subjects

$10.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
rjyashwanth26102006

Get to know the seller

Seller avatar
rjyashwanth26102006 Vk.higher secondary school
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions