只是看看是否有任何方法可以实现以下行为。
目前我正在做
select * from table_1 t1 where function_call(t1.col1, t1.col2) <> 0;
我调用函数 function_call 的原因是,该函数具有我无权访问的表 table_2。我可以访问的唯一方法是通过一个包。
有什么方法可以将上述行为更改为,在 from 子句中包含表信息,而不是在 where 子句中调用 function_call。
喜欢 ,
select * from table_1 t1, package_x.get_table_2() where t1.col1 = 1 and t1.col2 = 1 and t1.col3 = t2.col3