Connecting to the Database & Inserting data into it || Swing forms || Advanced Java Concepts ||

Publié le: 07 août 2021
sur la chaîne: CodeWasEpic
155
21

XAMPP download link
https://www.apachefriends.org/index.html

MYSQL Connector JAVA link
https://dev.mysql.com/downloads/conne...
--------------------------------------------------
FIVE STEPS TO BE FOLLOWED

 Register the driver class
 Creating connection
 Creating statement
 Executing queries
 Closing connection
---------------------------------------------------
1) The forName() method of Class class is used to register the driver class. This method is used to dynamically load the driver class.
2)The getConnection() method of DriverManager class is used to establish connection with the database.
3)The createStatement() method of Connection interface is used to create statement. The object of statement is responsible to execute queries with the database
4)The executeQuery() method of Statement interface is used to execute queries to the database. This method returns the object of ResultSet that can be used to get all the records of a table.

Let's Learn together :)

#database #java #swings #sql


Sur cette page du site, vous pouvez voir la vidéo en ligne Connecting to the Database & Inserting data into it || Swing forms || Advanced Java Concepts || durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur CodeWasEpic 07 août 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 155 fois et il a aimé 21 téléspectateurs. Bon visionnage!