delete All Rows In Database Table - Android Database

Android examples for Database:Table Drop

Description

delete All Rows In Database Table

Demo Code


//package com.java2s;

import android.database.sqlite.SQLiteDatabase;

public class Main {
    public static void deleteAllRowsInTable(SQLiteDatabase db,
            String tableName) {/*from ww w.  j  a va  2 s .  com*/
        db.delete(tableName, null, null);
    }
}

Related Tutorials