Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.database.sqlite.SQLiteDatabase;

public class Main {
    private static boolean columnExists(SQLiteDatabase db, String table, String column) {
        return (db.rawQuery("select * from " + table + " limit 0,1", null).getColumnIndex(column) != -1);
    }
}