zoukankan      html  css  js  c++  java
  • 存储过程和函数的区别

     

    1. Procedure can return zero or n values whereas function can return one value which is mandatory.
    2. Procedures can have input,output parameters for it whereas functions can have only input parameters.
    3. Procedure allow select as well as DML statement in it whereas function allow only select statement in it.
    4. Functions can be called from procedure whereas procedures cannot be called from function.
    5. Exception can be handled by try-catch block in a procedure whereas try-catch block cannot be used in a function.
    6. We can go for transaction management in procedure whereas we can't go in function.
    7. Procedures can not be utilized in a select statement whereas function can be embedded in a select statement.
    8. UDF Cannot execute dynamic SQL.
  • 相关阅读:
    归并排序
    mysql优化
    树结构
    urllib库的使用
    linux常用命令
    mysql慢查询
    支付宝第三方支付
    类型(type)判断
    c语言自带的排序与查找
    多字节与宽字节转换
  • 原文地址:https://www.cnblogs.com/flyinthesky/p/1575705.html
Copyright © 2011-2022 走看看