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
Function
Return Type
Description
Example
Result
array_append(anyarray,anyelement)
Anyarray
Append an element to the end of an array
Array_append (array[1,2], 3)
{A-i}
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
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
PostgreSQL supports arrays, but does not have a function to sort internal data elements. Today I wrote one with PLPGSQL and PLPYTHONU respectively. Example Table Structure: t_girl # dtest_array; Tableytt. test_arrayColumn | Type | Modifiers --------
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.