check if table exist sqlite java

Solutions on MaxInterview for check if table exist sqlite java by the best coders in the world

showing results for - "check if table exist sqlite java"
Emely
11 Feb 2019
1Connection c = ...
2DatabaseMetaData dbm = c.getMetaData();
3// check if "employee" table is there
4ResultSet tables = dbm.getTables(null, null, "employee", null);
5if (tables.next()) {
6  // Table exists
7}
8else {
9  // Table does not exist
10}