17 lines
384 B
Java
17 lines
384 B
Java
import java.sql.Connection;
|
|
import java.sql.SQLException;
|
|
|
|
public class Table {
|
|
Connection connection;
|
|
|
|
public Table(Connection connection, String statement) throws SQLException {
|
|
this.connection = connection;
|
|
this.execute(statement);
|
|
}
|
|
|
|
public void execute(String statement) throws SQLException {
|
|
var stmt = connection.prepareStatement(statement);
|
|
stmt.execute();
|
|
}
|
|
}
|