android sqlite 判断表和表中字段是否存在方法
try { String sql="select count(*)as c from sqlite_master where type='table' and name='"+tabName.trim()+"';cursor=mUDB.rawQuery(sql,null);if(cursor.moveToNext()){ int count=cursor.getInt(0);if(count>0){ result=true;} } } ...