Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.sql.*;
- public class Proc {
- public static void main(String[] args) throws Exception{
- Class.forName("oracle.jdbc.driver.OracleDriver");
- Connection con=DriverManager.getConnection(
- "jdbc:oracle:thin:@localhost:1521:xe","system","system");
- CallableStatement stmt=con.prepareCall("{call insertR(?,?)}");
- stmt.setInt(1,1011);
- stmt.setString(2,"Amit");
- stmt.execute();
- System.out.println("success");
- }
- }
Add Comment
Please, Sign In to add comment