I am trying to throw 4 tables into a List<table> and then run a query
on each through a loop... this isn't really working...

Following code totally freehand as I had to undo the code I wrote
because it wouldn't run :

//this first line is the one that I would imagine is the linchpin on
getting this to work
List<table> mTables = new List<table>();
mTable.add("character1")
//add character 2
//add character 3
//add character 4

for (int i = 0; i < 4; i++) {

mCursor = db.query(mTables.get(i), null null.......);
mCursor.movetofirst;

//use ContentValue to update a few fields

}

I was checking out the SQLiteQueryBuilder
http://developer.android.com/reference/android/database/sqlite/SQLiteQueryBuilder.html
- but it didnt quite seem to be what i was looking for.

Is this possible/feasible? Any help would be much appreciated.

Respectfully,
Ben

https://sites.google.com/site/defiledroid/

-- 
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