Giter VIP home page Giter VIP logo

jdbc-trials's Introduction

JDBC

Description

  • Java version: 17.0.8
  • MySQL version: 8.0.34

I'm experimenting with JDBC (Java Database Connectivity) programs to fulfill a requirement. I developed these programs using IntelliJ IDEA as my integrated development environment (IDE). In this repository, I've included the Main.java file, even though the Maven project I used for this experiment has many other dependencies.

  • database created: emp
  • table created: employee(ID int, name varchar(20), position varchar(20))
  • inserted sample tuple with ID=1, name=John Doe, position = Associate
  • the code now inserts a tuple, displays the table, deletes a tuple, displays again

Requirements

To run this JDBC program, you'll need the following:

  • An Integrated Development Environment (IDE), such as IntelliJ IDEA.
  • Java installed on your system.
  • A running MySQL server with the following information:
    • JDBC URL: jdbc:mysql://localhost:3306/emp
    • Username: mysql_username
    • Password: mysql_password

Note: Ensure that you are using the correct class name for the MySQL JDBC driver. In your code, make sure you are loading the driver class like this:

Class.forName("com.mysql.cj.jdbc.Driver");

![Output Screenshot](Image URL)

jdbc-trials's People

Contributors

krishhdude avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.