Navigation

    MemFireDB论坛

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    教程4:PostgreSQL的函数和存储过程

    MemFireDB培训
    1
    1
    33
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      admin last edited by admin

      1、什么是函数?

      函数是一组进行任何操作的SQL语句,如选择、插入、删除和更新。在PostgreSQL中有两种类型的函数 "系统定义的函数 "和 "用户定义的函数"。

      2、存储过程

      为了克服函数的限制,PostgreSQL提供了存储过程来支持事务。在存储过程中,我们可以启动、提交、回滚事务。然而,存储过程不能像表一样返回一个结果集。它只能返回INOUT参数。

      具体教程详见:https://mp.weixin.qq.com/s/DbCqN0h13cALPuFVybsXCg

      1 Reply Last reply Reply Quote 2
      • First post
        Last post