programming languages

How to insert data in oracle using notepad?

Posted on

JDBC connectivity in java
Database connectivity in java with oracle

import java.sql.*;
import java.util.Scanner;
class Employee
public static void main(String args[])
Scanner s=new Scanner(;
String url=”jdbc:oracle:thin:@localhost:1521:xe”;
String user=”system”;
String password=”password of oracle”;
int i;
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
Connection con=DriverManager.getConnection(url,user,password);
Statement st=con.createStatement();
String sql=”select * from emp”;
ResultSet rs=st.executeQuery(sql);
catch(Exception ex)

This blog written by Jitendra Kumar a good Java Trainer at Vtech Academy of Computers – Best JAVA Training Institute