How to fix the Oracle error PLS-00513: PL/SQL function called from SQL must return value of legal SQL type?

In this post, you’ll learn more about the Oracle ErrorPLS-00513: PL/SQL function called from SQL must return value of legal SQL type with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

PLS-00513: PL/SQL function called from SQL must return value of legal SQL type

Reason for the Error PLS-00513: PL/SQL function called from SQL must return value of legal SQL type

In a SQL statement, do not call a PL/SQL function having a return type that can not be handled by SQL. For example, type BOOLIAN, records and indexed-tables are not supported by SQL and functions returneing such values can not be called from SQL.

How to fix the Error PLS-00513: PL/SQL function called from SQL must return value of legal SQL type ?

You can fix this error in Oracle by following the below steps

None

Tags :

Leave Your Comment