PDA

View Full Version : Bind Table Name at run time..



chaaruu
13th February 2012, 12:55
Hi,
I use BindValue to bind values at run time to a query...but i don't know how to bind different tables(Table names) with single query..
Is their any functionality to bind table name at run time..

KillGabio
13th February 2012, 13:15
setObjectName () ...???

ChrisW67
13th February 2012, 23:39
No, there is no facility to parameterise the table name in SQL (not a Qt limit). You have to do that with string substitution or a better database design.