What is the difference between function and procedure in PL/SQL?

后端 未结 7 1035
日久生厌
日久生厌 2020-11-27 14:30

What is the difference between function and procedure in PL/SQL ?

7条回答
  •  無奈伤痛
    2020-11-27 14:56

    The following are the major differences between procedure and function,

    1. Procedure is named PL/SQL block which performs one or more tasks. where function is named PL/SQL block which performs a specific action.
    2. Procedure may or may not return value where as function should return one value.
    3. we can call functions in select statement where as procedure we cant.

提交回复
热议问题