Guest User

Untitled

a guest
Oct 12th, 2017
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import java.sql.*;
  2. public class Proc {
  3. public static void main(String[] args) throws Exception{
  4.  
  5. Class.forName("oracle.jdbc.driver.OracleDriver");
  6. Connection con=DriverManager.getConnection(
  7. "jdbc:oracle:thin:@localhost:1521:xe","system","system");
  8.  
  9. CallableStatement stmt=con.prepareCall("{call insertR(?,?)}");
  10. stmt.setInt(1,1011);
  11. stmt.setString(2,"Amit");
  12. stmt.execute();
  13. System.out.println("success");
  14. }
  15. }
Add Comment
Please, Sign In to add comment