Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个查询有效吗?如果包(具有正确的定义和主体)和功能存在并且工作正常。
Select "JK" As Name, pckg_name1.function_name1(number1,number2) from dual
函数调用很好(假设函数返回 SQL 数据类型 - 您不能使用 PL/SQL 特定的数据类型,例如布尔值),但是您对JK的引用是错误的。您必须使用单引号而不是双引号:
Select 'JK' As Name, pckg_name1.function_name1(number1,number2) from dual