JDBC Database Connectivity using JSP and Servlet, Database connectivity on Java JDBC:- JDBC means Java database connectivity, it is used to connect from the front-end(application server) to the back-end(database server) in the case of Java web application. The database provides a set of tables to store records and JDBC will work similarly to the bridge between the database table and application form. 1) Class.forName("drivername") // Manage Drive Class.formName("com.mysql.jdbc.Driver"); // MYSQL Class.forName ("oracle.jdbc.driver.OracleDriver"); //Oracle 2) Manage Connection String It establish connection from application server to database server, Java provide DriverManage class and getConnection that will return Connection object. Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/databasename","username","password"); 3) Manage Statement to...
Comments
Post a Comment
POST Answer of Questions and ASK to Doubt