-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconnection.java
More file actions
39 lines (27 loc) · 1010 Bytes
/
connection.java
File metadata and controls
39 lines (27 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package institute;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
public class connection {
public Connection con;
public ResultSet rs;
public Statement stmt;
public connection()
{
PreparedStatement preparestatement;
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //dirver relation
con=DriverManager.getConnection("jdbc:odbc:yash");
stmt=con.createStatement();
}
catch(Exception e)
{
System.out.println("class not found exception");
}
}
PreparedStatement prepareStatement(String select_useridpwd_from_signin_where_userid) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
}