SHARE
TWEET

Untitled

a guest Dec 13th, 2016 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. try {  
  2.           Class.forName("org.postgresql.Driver");
  3.           Connection Con=DriverManager.getConnection("jdbc:postgresql://localhost:5432/postgres","postgres","");
  4.  
  5.           if(Con!=null){    System.out.println("Connected");   }
  6.  
  7.           Statement st=Con.createStatement();
  8.           String sql="insert into musteri values(002,'Z')";
  9.  
  10.           st.execute(sql);
  11.           }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top