Loop thru the cursor and get the names. I guess you don't know the
column names, but you can get the column names as well by indexes.

On Nov 8, 3:36 pm, "pramod.deore" <[email protected]> wrote:
> Hi Bibek, Once again Thanks.
> I had tried that as
>  final  String ALL_TABLES = "SELECT name FROM " +
>             "sqlite_master WHERE type='table' ORDER BY name";
>
>                          Cursor cur = sampleDB.rawQuery(ALL_TABLES, null);
>
> But now I don't understand how to retrieve the name of tables from
> cursor.
>
> On Nov 8, 2:34 pm, Kumar Bibek <[email protected]> wrote:
>
> > Run this query
>
> > SELECT name FROM sqlite_master
> > WHERE type='table'
> > ORDER BY name;
>
> > On Mon, Nov 8, 2010 at 2:42 PM, pramod.deore 
> > <[email protected]>wrote:
>
> > > Hi, I want to know how to check whether certain table is existed or
> > > not in a database?
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<android-developers%[email protected]>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to