drop Table Sql - Android Database

Android examples for Database:Table Drop

Description

drop Table Sql

Demo Code


//package com.java2s;

public class Main {
    public static String dropTableSql(Class clazz) {
        StringBuilder sb = new StringBuilder();
        sb.append("DROP TABLE IF EXISTS ");
        sb.append(clazz.getSimpleName());
        sb.append(";");
        return sb.toString();
    }/*from w ww  . j a va2s .c o m*/
}

Related Tutorials