Answers for "how to check table exists in sql or not using java jdbc"

0

java check if sql table exists

DatabaseMetaData dbm = con.getMetaData();
// check if "employee" table is there
ResultSet tables = dbm.getTables(null, null, "employee", null);
if (tables.next()) {
  // Table exists
}
else {
  // Table does not exist
}
Posted by: Guest on November-30-2020

Code answers related to "how to check table exists in sql or not using java jdbc"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language