Home  >  Forum  >  Database
Post New Query

core java


joined on
June 22,2013
Asked on June 22,2013
How  to connect the JDBC in database and clearly explain to full of steps
joined on
June 22,2013
Replied on June 22,2013

How  to connect the JDBC in database and clearly explain to full of steps
joined on
March 15,2013
Replied on March 11,2015

static Connection connection = null;
static {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
   connection=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:oracle12c","user_name","password");
} catch (Exception e) {
e.printStackTrace();
}
}

Write Answer









Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us