oracle存储过程调用
我有个需求是这样的,
select * from tableA where name not in (..............) ,
这个not in 后面的list经常变, 所以我想把它写在function里,
*************************************************************************************/
function getEXCLUDENAME return varchar2
is
begin
return 'a,b,c,..........................';
end;
但是不能select * from tableA where name not in (getEXCLUDENAME) 这么调用,
求解决方案, 因为sql是在程序里的,程序升级很麻烦,而如果写在数据库端, 随时都能动,方便配置更改.