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