SELECT * FROM(SELECT)

时间:2017-09-13 08:17:47

标签: sql oracle11g

有一张桌子" MAIN_TABLE"列#34; Table_Unique_Code"和" Table_name"。

还有几个表格包含所需数据。

任务是使用参数(" Table_Unique_Code")创建SQL查询,它将从表中选择" Table_Unique_code"确定的所有数据。

这样的东西
SELECT * FROM (*determine the name of the table by Table_Unique_code  here*);

我试过

SELECT * FROM (SELECT table_name FROM MAIN_TABLE WHERE Table_Unique_Code=?)

但它没有用。

我使用OracleDB。

0 个答案:

没有答案