Stored procedures and functions are collectively referred to as PL programs. They are named as PL blocks and exchange information with callers through input and output parameters.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
The key difference between stored procedures and functions is that functions always return data to the caller, while stored procedures do not actively return data. However, stored procedures can still output data through OUT parameters.
OceanBase Database allows you to store PL programs in the database. Any session connected to OceanBase Database can run these programs as long as it has the necessary permissions.
