学习PostgreSQL存储过程的最佳方法? [英] Best way to learn PostgreSQL stored procedures?

查看:87
本文介绍了学习PostgreSQL存储过程的最佳方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个不错的教程或类似的东西,用于学习如何编写存储过程(对于PostgreSQL数据库)。在编写存储过程方面,我绝对是个新手,因此,对它进行更清晰,更简单的解释是更好的...

Is there a good tutorial or something similar for learning how to write Stored Procedures (for a PostgreSQL database). I'm a definite newbie when it comes to writing Stored Procedures at all, so the clearer and simpler things are explained, the better...

在此先感谢。 。

推荐答案

您几乎已经拥有了,但是最好从这里开始 plpgsql

You almost had it, but better start here plpgsql

有人会指出 PL / pgSQL 不是为PostgreSQL写存储过程的唯一方法,它们是正确的(这是Postgres的优点之一),但是另一方面, PL / pgSQL 很不错,而且起步比较容易。

Some will point that PL/pgSQL is not the only way to write Stored Procedures for PostgreSQL and they will be right (that's one of the advantages of Postgres), but on the other hand PL/pgSQL is nice and relatively easy to start with.

这篇关于学习PostgreSQL存储过程的最佳方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆