Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to learn PostgreSQL stored procedures? [closed]

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...

Thanks in advance...

like image 605
Epaga Avatar asked Mar 09 '09 08:03

Epaga


People also ask

How many days it will take to learn PostgreSQL?

If you have some prior experience in designing and building databases, one to two weeks of dedication should be sufficient to master the concepts of PostgreSQL. If not, you can expect a time of two to three weeks to cover the topics in all its depth.

Does PostgreSQL have stored procedures?

PostgreSQL does not support stored procedures in the sense that a database such as Oracle does, but it does support stored functions.

Is PostgreSQL hard to learn?

PostgreSQL has very exhaustive and detailed documentation. Although tough on the beginner – it is hard to find an easy entry point – having mastered the first step, you will never run out of information to further your knowledge.


Video Answer


1 Answers

You almost had it, but better start here plpgsql

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.

like image 129
Milen A. Radev Avatar answered Oct 07 '22 01:10

Milen A. Radev