This is a simple Java application for managing student records in a database. It provides functionality to add, delete, and display student information using a command-line interface.
- ๐ Prerequisites
- ๐ Getting Started
- ๐ป Usage
- ๐ค Contributing
- ๐ License
- ๐ Acknowledgements
- Java Development Kit (JDK)
- PostgreSQL Database
-
Clone the repository:
git clone https://github.com/iamaditya/JDBC.git
-
Set up the PostgreSQL database:
- Install PostgreSQL on your local machine.
- Create a database named TestDB.
- Update the database connection details in the
ConnectionP
class if necessary.
-
Compile the source code:
javac Start.java
-
Run the application:
java Start
The application provides the following options:
- ๐ Add Student: Add a new student to the database by providing their name, phone number, and city.
- ๐๏ธ Delete Student: Delete a student from the database by entering their ID.
- ๐ Display Student: Display all the students stored in the database.
- ๐ช Exit: Quit the application.
Contributions are welcome! If you find any issues or want to enhance the functionality, feel free to submit a pull request.
This project is licensed under the MIT License.