3
3
-------------------------------------------------------------
Sample Queries:
1) I want to create Course table with columns
Course_id course_name Duration start_date
STUDENT
ROLL_NUMBER SECTION NAME MARKS
101 A SUNIL 699
102 A ANIL 599
101 B KETHAN 489
102 B SURAJ 571
Date: 22/02/2024
Introduction to JDBC:
Date : 23/02/2024
What are the issues with files?
1. Searching for a specific data in a file will be a time
consuming task.
2. Same data can be stored multiple times in a file. So it
leads to redundant data/duplicate data. The problem
is memory space will be wasted.
3. When data is stored across multiple files then
retrieving the related information/data from the files
is a tedious task.
4. When data exist in multiple files, if the data is
modified at one file and not modified at another file
then it leads to data inconsistency.
5. The data stored in files is not secured. Because, once
a file a opened all the data of that file will be visible.
All the above issues we can overcome with the
Databases.
CRUD operations.
C – create ( creating the data / inserting the data)
R – Read ( retrieving the data/selecting the data)
U – Update ( updating the data/modifying the data)
D – Delete ( deleting the data / removing the data)
JDBC Technology:
Technology refers to the tools and techniques to
solve the problems.
API Java Library or Java API both are same.
Java API refers to a collection of
pre-defined/pre-existing programs given by the
programming language to develop user-defined
applications.