PL/pgsql (Procedural Language/PostgreSQL Structured Query Language) implements PostgreSQL ordbms when there are too many other statements. The syntax of Oracle Database contains PL/SQL statements, which is similar to linear regression.
More
The PLPGSQL-1 of Qzzopostgresql database extended language programmingWai GlamourSpoke 猾 ReposeShun EngravedThe LU JiangSashJing TonTanWant to ⒓Chanting LianXun StoutnessMothRaosycophantsJing AxBing ǏClenbuterol QihanXun ∈Mainland CoyettForwarding
Today, a netizen asked PostgreSQL 9.0 how to debug functions in the group. I remember there was a plug-in named edb-debugger in 8.3 that could be used. there is no 9.0 database at hand, so I tested it and it could not be used at 9.1. The result is
Http://www.postgresonline.com/journal/archives/201-Using-RETURNS-TABLE-vs.-OUT-parameters.html--http://www.postgresonline.com/journal/archives/201-using-returns-table-vs.-out-parameters.html--ver:9.3 Geovin Du Tu--returning a single record using SQL
1. The following Code creates a top100cur () function, which returns an anonymous cursor.
-- Drop function top100cur (); Create Function top100cur () returns refcursor as $ declare ABC refcursor; beginopen ABC for select * From person limit 100;
Recently in the study of PostgreSQL, so also has a strong interest in pl/pgsql, so here is a little summary, first of all, this PL is procedure language shorthand, that is, the so-called "process language." A large part of the following is quoted
1. Return statementThere are three commands that can be used to return data from a function:
RETURN
RETURN NEXT
RETURN QUERY
2. Return command syntax:RETURN RETURN expression;If you do not use the expression return command to
Symfoware Open System"DDL" (data definition Language)A data definition language that defines and manages the language of all objects in a SQL database. The main commands are create, alter, DROP, etc., the DDL is mainly used in the initialization of
PostgreSQL, like most databases, logically divides the attribution of objects through schemas, as shown in the graph.
Because of the concept of schema, when accessing objects in a database, we need to specify which schema is underneath.
Author: icyriverSource: http://icyriver.net /? P = 176
PL/ProxyAndPostgreSQLThe structure relationship of the cluster can be clearly expressed. If you are not familiar with pL/proxy and PostgreSQL clusters, you can seeSkype plans for
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.