Code example for PreparedStatement

Methods: executeQuery

0
 
    try 
    { 
      String fullTableName = tableOwner + "." + tableName;
      stmt = con.prepareStatement("SELECT * FROM " + fullTableName + " WHERE 0=1") ;
      stmt.executeQuery();
      return true; 
    } 
    catch(SQLException ex)
    { 
      return false; 
    } 
    finally 
    { 
      SchemaUtils.close(stmt);
    } 
  } 
 
  public TableTypeInfo buildTableType(Connection con, String tableOwner, String tableName,String pk)
    throws SQLException 
  {