Andrew
Andrew

Reputation: 233

WHERE with two tables and specific table name

I have 2 tables:

table 1 named table_1
table 2 named table_2

in the Table 2 I have a column with a name "table_name" where I have names of some tables from dbase

I want to write a condition for WHERE procedure, something like that (wrong of course)

WHERE $table_1.name of table 1 = $table_2.table_name

ie the situation when the proper name of the Table 1 is inside column table_name from the Table 2

of course - the proper name of the Table 1 is -> $table_1

Upvotes: 0

Views: 125

Answers (1)

zerkms
zerkms

Reputation: 254916

It is not possible to do (Thanks gosh)

In any widely used DBMS

Upvotes: 1

Related Questions