Drops the temp SQL table. - Android Database

Android examples for Database:Table Drop

Description

Drops the temp SQL table.

Demo Code


//package com.java2s;

import android.database.sqlite.SQLiteDatabase;

public class Main {
    /**//from   w  ww .  jav  a 2 s.  com
     * Drops the temp table.
     * 
     * @param db
     *            a writeable database.
     */
    public static void dropUpdateTableHelper(SQLiteDatabase db,
            String tempTable) {
        db.execSQL("DROP TABLE IF EXISTS " + tempTable + ";");
    }
}

Related Tutorials