db[key].id not workin?? Richard
On Mon, Feb 21, 2011 at 3:16 PM, LightOfMooN <[email protected]> wrote: > Is there a way to use variables in queries as table names? > For example, something like this: > > keys = ['table1','table2','table3'] > mydict = {} > for key in keys: > mydict[key] = db(db.KEY.id=='some_id').select() > > where key is a name of table. >

