EXECUTE IMMEDIATE in plsql

前端 未结 4 1761
我在风中等你
我在风中等你 2020-12-16 08:56

How to get a result from this code

EXECUTE IMMEDIATE \'SELECT * FROM \' || table_name

through for loop

The usual m

4条回答
  •  不知归路
    2020-12-16 09:31

    You need to declare a cursor from the dynamic sql and loop through it.

    An example of this is available in the manual:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/dynamic.htm#CHDJHAHE

提交回复
热议问题