- Procedure can return zero or n values whereas function can return one value which is mandatory.
- Procedures can have input,output parameters for it whereas functions can have only input parameters.
- Procedure allow select as well as DML statement in it whereas function allow only select statement in it.
- Functions can be called from procedure whereas procedures cannot be called from function.
- Exception can be handled by try-catch block in a procedure whereas try-catch block cannot be used in a function.
- We can go for transaction management in procedure whereas we can\'t go in function.
- Procedures can not be utilized in a select statement whereas function can be embedded in a select statement.
- UDF Cannot execute dynamic SQL.
相关文章:
-
2021-12-21
-
2021-12-21
-
2021-12-21
-
2021-12-21
-
2021-12-21
-
2021-12-21
猜你喜欢
-
2021-12-21
-
2021-12-21
-
2021-12-21
相关资源
-
下载
2023-02-12
-
下载
2023-03-03
-
下载
2023-04-02