3
我可以依靠在SQL中首先执行的函数吗
请考虑以下脚本: create or replace function f(p_limit in integer) return integer as begin set_global_context ('limit', p_limit); return p_limit; end; / create view v as select level as val from dual connect by level<=sys_context('global_context','limit'); select f(2), v.* from v; /* F(2) VAL ---------------------- ---------------------- 2 1 2 2 */ select f(4), v.* …
9
oracle