joelwenzel
Programmer
- Jun 28, 2002
- 448
Hi,
I want to do something like
SELECT * FROM (SELECT tableName FROM MyTables WHERE userID =3)
tableName is a column in the table MyTables. tableName is the name of another table in the database. So what I want is to select from the data in the table whose name is tableName. What I don't want is to select from the data returned by the set (SELECT tableName FROM MyTables WHERE userID =3) which is what I am currently doing. Any ideas how I can do what I want? Or is it even possible?
I want to do something like
SELECT * FROM (SELECT tableName FROM MyTables WHERE userID =3)
tableName is a column in the table MyTables. tableName is the name of another table in the database. So what I want is to select from the data in the table whose name is tableName. What I don't want is to select from the data returned by the set (SELECT tableName FROM MyTables WHERE userID =3) which is what I am currently doing. Any ideas how I can do what I want? Or is it even possible?