drop index for table in SQLiteDatabase - Android Database

Android examples for Database:Table Index

Description

drop index for table in SQLiteDatabase

Demo Code


//package com.book2s;

import android.database.sqlite.SQLiteDatabase;

public class Main {
    public static void upgrade(SQLiteDatabase paramSQLiteDatabase,
            int paramInt1, int paramInt2) {
        paramSQLiteDatabase/*from w ww  . j a  v a  2s.c  o m*/
                .execSQL("drop index if exists clean_time_index");
        paramSQLiteDatabase.execSQL("drop index if exists name_index");
        paramSQLiteDatabase.execSQL("drop table if exists cache_file");
    }
}

Related Tutorials