Hi all.. I am new to java and I am thinking of dropping all the tables in mysql.
I have written halfway and I am stuck. can someone help me?
String query = "SELECT tablename FROM tablelist";
ResultSet rs = con.runQuery(query);
ArrayList infoList = new ArrayList();
while (rs.next()) {
infoList.add(result.getString(1));
}
out.println("All tables in tablelist are removed"
below is all the list of the table names stored in tablelist
+-----------+
| tablename |
+-----------+
| newfour |
| newone |
| newthree |
| newtwo |
| newfive |
| newsix |
+-----------+
Each item is a table stored in the database and also has records in them.
I have written halfway and I am stuck. can someone help me?
String query = "SELECT tablename FROM tablelist";
ResultSet rs = con.runQuery(query);
ArrayList infoList = new ArrayList();
while (rs.next()) {
infoList.add(result.getString(1));
}
out.println("All tables in tablelist are removed"
below is all the list of the table names stored in tablelist
+-----------+
| tablename |
+-----------+
| newfour |
| newone |
| newthree |
| newtwo |
| newfive |
| newsix |
+-----------+
Each item is a table stored in the database and also has records in them.