public static boolean tableExists ( Connection connection , String tableName ) throws SQLException { try ( Statement statement = connection . createStatement ( ) ) { statement . execute ( "SELECT * FROM " + TableLocation . parse ( tableName ) + " LIMIT 0;" ) ; return true ; } catch ( SQLException ex ) { return false ; } }
Return true if the table exists .