Postgresql PL/PGSQL Functions - part 2

所在平台: Udemy

课程主页: https://www.udemy.com/course/postgresql-plpgsql-functions-part-2/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:Postgresql PL/PGSQL 函数 - 第二部分** **课程概述:** 如果您是数据库开发人员,并且将性能作为数据库设计的首要目标,那么 PL/PGSQL 函数是您的绝佳工具。本课程是该系列课程的第二部分,将全面深入讲解 PostgreSQL 函数。 **学习要点:** * **函数的使用优势:** 了解为何以及何时使用 PL/PGSQL 函数来提升数据库性能。 * **函数的结构与组件:** 详细解析函数定义的各个部分,包括声明、返回值类型、参数等。 * **创建函数的语法:** 学习创建 PL/PGSQL 函数的规范语法。 * **函数体详解:** 深入理解函数的核心——函数体,并通过示例学习其组成部分。 * **函数体内的实现:** * **变量的使用:** 如何在函数内部声明和使用变量。 * **查询语句:** 如何在函数中执行 SQL 查询。 * **返回结果:** 多种返回结果的方式,包括标量变量、`TABLE` 和 `RECORD`。 * **数据类型:** 学习函数可以返回的各种数据类型。 * **参数的使用:** 了解如何利用参数创建灵活的函数。 * **处理复杂数据类型:** 学习如何处理数组(`ARRAY`)以及混合数据类型的值。 * **特殊查询的应用:** * `INSERT`、`UPDATE`、`DELETE` 语句的 `RETURNING` 子句。 * `INTO` 子句的使用。 * `FOR` 和 `FOREACH` 循环。 * `PERFORM` 和 `EXECUTE` 语句。 * **实践演练:** 所有讲解都将通过在 PostgreSQL 服务器上的实际示例进行练习,确保学以致用。 **课程总览:** 本套函数课程共包含两部分,共计超过 15 个视频,旨在帮助学员系统掌握 PL/PGSQL 函数的应用。 **注:** 本门课程共分两部分,均符合 Udemy 对课程长度的规定。

课程评论(0条)

课程详情

If you are a database developer and you put performance as goal to achieve with your DB design...then using PL/PGSQL functions is your excellent tool.This is the 2nd part of this courseIn this course we will learn all about functions: Usage benifits.Structure & structure components.Syntax to create a function.And the core part of any function which is the body.we will see with examples of which parts the body build.We see the different kinds of implementations in the body , starting with the variables, queries and the return results.We see with examples the different datatypes that we can RETURNS from a functionWe see the parameters that we can use to create a function.How to deal with different types of data that we process in a function such as ARRAY and mix data types value…How to RETURNS TABLES, RECORDS or Scalar variables.How to use special queries such as insert ,update ,delete with returning.or use INTO clause and how to apply FOR & FOREACH Loopshow to use PERFORM and EXECUTEAll this we will practice with live examples on a postgresql server.P.S: THIS FUNCTIONS course in total consist of 2 parts with more than 15 videos divided in 2 parts in compliance with UDEMY rules

课程标签

0人关注该课程

主题相关的课程