- PostgreSQL 11 Server Side Programming Quick Start Guide
- Luca Ferrari
- 132字
- 2021-06-10 19:23:03
The PL/pgSQL Language
The PL/pgSQL language is the default PostgreSQL language to implement functions, procedures, and other general SQL-like executable code.
The idea behind PL/pgSQL is to provide a more flexible and rich language to allow for complex computations, conditionals, iterations, and error handling. PL/pgSQL allows us to group several operations, including SQL statements, into code blocks, which are stored and executed on the server side. This has the benefit of reducing the traffic among the client and the backend.
This chapter will cover the following topics:
- What a block of code looks like
- How to execute a block of code with the DO statement
- How to declare, assign, and use variables, as well as how to print messages
- Conditionals, iterations (loops), and special variables
- How to deal with errors and exceptions
推薦閱讀
- Instant Raspberry Pi Gaming
- 大數(shù)據(jù)技術(shù)基礎(chǔ)
- 數(shù)據(jù)中心建設(shè)與管理指南
- 程序設(shè)計(jì)缺陷分析與實(shí)踐
- Hands-On Cloud Solutions with Azure
- Mastering Salesforce CRM Administration
- RPA(機(jī)器人流程自動(dòng)化)快速入門:基于Blue Prism
- Arduino &樂(lè)高創(chuàng)意機(jī)器人制作教程
- Dreamweaver CS6精彩網(wǎng)頁(yè)制作與網(wǎng)站建設(shè)
- 從零開(kāi)始學(xué)PHP
- Salesforce Advanced Administrator Certification Guide
- 學(xué)練一本通:51單片機(jī)應(yīng)用技術(shù)
- 青少年VEX IQ機(jī)器人實(shí)訓(xùn)課程(初級(jí))
- Python文本分析
- Drupal高手建站技術(shù)手冊(cè)