private boolean isValueExists(Cursor cursor,String tableName){
  boolean exist=false;
  if (cursor.moveToFirst()) {
    do {
      String name=cursor.getString(cursor.getColumnIndexOrThrow(Const.TableSchema.COLUMN_NAME));
      if (name.equalsIgnoreCase(tableName)) {
        exist=true;
        break;
      }
    }
 while (cursor.moveToNext());
  }
  return exist;
}

private boolean isValueExists ( Cursor cursor , String tableName ) { boolean exist = false ; if ( cursor . moveToFirst ( ) ) { do { String name = cursor . getString ( cursor . getColumnIndexOrThrow ( Const . TableSchema . COLUMN_NAME ) ) ; if ( name . equalsIgnoreCase ( tableName ) ) { exist = true ; break ; } } while ( cursor . moveToNext ( ) ) ; } return exist ; }
judge the table name has already exist in the table_schema or not .
