Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

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
}
Comment

PREVIOUS NEXT
Code Example
Java :: java dictionary 
Java :: how to convert a hexadecimal number to a decimal inside a println in java 
Java :: Utils code for plugin minecraft 
Java :: Bukkit debug message 
Java :: keytool command sha256 
Java :: material design android dependency androidx 
Java :: how to print text in java 
Java :: rwegex java 
Java :: spring serve robots.txt 
Java :: java initialize map with values in one line 
Java :: java get last element of list 
Java :: java printf leading zeros 
Java :: discord failed to install mac 
Java :: java swing absolute position 
Java :: renardfute 
Java :: jlabel on the center of a jpanel 
Java :: arrange item center android studio linear layout 
Java :: java iterable to list 
Java :: jenna fischer that 70s show 
Java :: spring mvc get all request parameters 
Java :: primefaces custom validate 
Java :: how to find power of a number in java 
Java :: Unhandled exception: java.lang.InterruptedException 
Java :: creating modulu function withou using % java 
Java :: how to find a specific word in a text file in java 
Java :: difference between abstract class and final 
Java :: how to change maven java version in po, 
Java :: reverse sentence in java 
Java :: double min value java 
Java :: Arraylist string to character java 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =