Java tutorial
//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); } }