-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConn.java
More file actions
29 lines (23 loc) · 772 Bytes
/
Copy pathConn.java
File metadata and controls
29 lines (23 loc) · 772 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
package institute.management.system;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.Statement;
public class Conn {
public PreparedStatement s;
public PreparedStatement Statement;
Connection connection;
Statement statement;
Conn(){
try{
Class.forName("com.mysql.cj.jdbc.Driver");
connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/`instute_management_system`","root","Mysql@143");
statement = connection.createStatement();
}catch(Exception e){
e.printStackTrace();
}
}
public PreparedStatement prepareStatement(String query) {
return null;
}
}