Login
Remember
Register
Developerhelpway Q&A
All Activity
Questions
Hot!
Unanswered
Tags
Categories
Users
Ask a Question
Ask a Question
How to create jdbc application in java? Please provide steps to create jdbc application using JDBC API
0
votes
2.6k
views
asked
Nov 5, 2013
in
Servlet
by
shalini yadav
How to create jdbc application in java? Please provide steps to create jdbc application using JDBC API
jdbc
jdbc-application-steps
jdbc-examples
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Nov 5, 2013
by
Vivek Srivastava
Following steps to crete a JDBC application:
Import packages:-
Import all requires packages containing in the JDBC classes which needed for database programming.
For example:
import java.sql.*
Register JDBC driver:-
Register the requires JDBC driver which needed you to initialize a driver for opening a communications channel with the database.
Open connection:-
To use
DriverManager.getConnection()
method to create a JDBC Connection object, which represents a physical connection with the database.
Execute query:-
Type SQL Statement to build and submit into the database.
Extract data to use resultset:-
To use
ResultSet.getXXX()
method for retrieving the data from resultset.
Clean environment:-
Closing all database resources.
Please
log in
or
register
to add a comment.
Share:-
Welcome to
Developerhelpway
Q&A, where you can ask questions and receive answers from other members of the community.
Categories
All categories
Hibernate
(13)
Spring
(9)
Spring Boot
(47)
Java
(203)
Design Pattern
(2)
JDBC
(9)
Servlet
(1)
JSP
(2)
JSTL
(1)
Thymeleaf
(1)
Struts
(0)
RMI
(0)
PHP
(3)
MySQL
(21)
Oracle
(0)
JSF
(0)
MongoDB
(16)
PLSQL
(0)
JavaScript
(6)
jQuery
(20)
Node.js
(40)
ActiveMQ
(0)
RabbitMQ
(2)
CSS
(0)
HTML
(0)
HTML5
(0)
XML
(0)
Photoshop
(0)
Jasper Report
(0)
iReport
(0)
JMS
(0)
ANT
(0)
Maven
(2)
GIT
(3)
SVN
(0)
CVS
(0)
Eclipse
(2)
Netbeans
(0)
jBoss
(0)
Tomcat
(3)
FreeMarker
(2)
Nginx
(5)
WAMP/LAMP
(0)
Hadoop
(0)
HDFS
(0)
Elasticsearch
(0)
Android
(5)
iPhone
(0)
Windows
(1)
Linux
(0)
Ubuntu
(6)
Data Structure And Algorithm
(53)
Apache Solr
(1)
Google Chrome
(1)
...