postgresql table function
For example, this function removes rows with negative salaries from the emp table: CREATE FUNCTION clean_emp() RETURNS void AS ' DELETE FROM emp ... ,此外,OUT 和INOUT 參數不能與RETURNS TABLE 表示法一起使用。 argname. 參數的名稱。在某些語言(包括SQL 和PL/pgSQL)可讓你在函數中使用該名稱。 ,CREATE [ OR REPLACE ] FUNCTION name ( [ [ argmode ] [ argname ] argtype [ DEFAULT | = } default_expr ] [, ...] ] ) [ RETURNS rettype | RETURNS TABLE ( ... ,The data type of an output column in the RETURNS TABLE syntax. lang_name. The name of the language that the function is implemented in. It can be sql , c ... , ,CREATE [ OR REPLACE ] FUNCTION name ( [ [ argmode ] [ argname ] argtype [ DEFAULT | = } default_expr ] [, ...] ] ) [ RETURNS rettype | RETURNS TABLE ( ... ,CREATE [ OR REPLACE ] FUNCTION name ( [ [ argmode ] [ argname ] argtype [ DEFAULT | = } default_expr ] [, ...] ] ) [ RETURNS rettype | RETURNS TABLE ( ... ,CREATE [ OR REPLACE ] FUNCTION name ( [ [ argmode ] [ argname ] argtype [ DEFAULT | = } default_expr ] [, ...] ] ) [ RETURNS rettype | RETURNS TABLE ( ... , You can define the statement using either static SQL or dynamic SQL. You can also implement a language sql table function by defining the body ...,In this tutorial, we will show you how to develop PostgreSQL functions that return a table.
相關軟體 PostgreSQL 資訊 | |
---|---|
PostgreSQL 是一個跨平台的對象關係型數據庫管理系統,自 1995 年首次發布以來,已經成長為國際知名的解決方案,可幫助管理員輕鬆創建,組織,管理和部署各種形狀和大小的項目數據庫。這當然包括對運行 SQL 查詢,觸發管理,屬性管理以及其他企業級數據庫管理系統當前正在使用的所有功能的全面控制。為使日常管理多個作業和項目組件的管理員更容易訪問,PostgreSQL 符合大多數 SQL 2008... PostgreSQL 軟體介紹
postgresql table function 相關參考資料
9.2: Query Language (SQL) Functions - PostgreSQL
For example, this function removes rows with negative salaries from the emp table: CREATE FUNCTION clean_emp() RETURNS void AS ' DELETE FROM emp ... https://www.postgresql.org CREATE FUNCTION - PostgreSQL 正體中文使用手冊
此外,OUT 和INOUT 參數不能與RETURNS TABLE 表示法一起使用。 argname. 參數的名稱。在某些語言(包括SQL 和PL/pgSQL)可讓你在函數中使用該名稱。 https://docs.postgresql.tw Documentation: 11: CREATE FUNCTION - PostgreSQL
CREATE [ OR REPLACE ] FUNCTION name ( [ [ argmode ] [ argname ] argtype [ DEFAULT | = } default_expr ] [, ...] ] ) [ RETURNS rettype | RETURNS TABLE ( ... https://www.postgresql.org Documentation: 12: CREATE FUNCTION - PostgreSQL
The data type of an output column in the RETURNS TABLE syntax. lang_name. The name of the language that the function is implemented in. It can be sql , c ... https://www.postgresql.org Documentation: 7.3: Table Functions - PostgreSQL
https://www.postgresql.org Documentation: 9.0: CREATE FUNCTION - PostgreSQL
CREATE [ OR REPLACE ] FUNCTION name ( [ [ argmode ] [ argname ] argtype [ DEFAULT | = } default_expr ] [, ...] ] ) [ RETURNS rettype | RETURNS TABLE ( ... https://www.postgresql.org Documentation: 9.1: CREATE FUNCTION - PostgreSQL
CREATE [ OR REPLACE ] FUNCTION name ( [ [ argmode ] [ argname ] argtype [ DEFAULT | = } default_expr ] [, ...] ] ) [ RETURNS rettype | RETURNS TABLE ( ... https://www.postgresql.org Documentation: 9.4: CREATE FUNCTION - PostgreSQL
CREATE [ OR REPLACE ] FUNCTION name ( [ [ argmode ] [ argname ] argtype [ DEFAULT | = } default_expr ] [, ...] ] ) [ RETURNS rettype | RETURNS TABLE ( ... https://www.postgresql.org Implementing PostgreSQL User-Defined Table Functions in ...
You can define the statement using either static SQL or dynamic SQL. You can also implement a language sql table function by defining the body ... https://blog.yugabyte.com PLpgSQL Function Returns A Table - PostgreSQL Tutorial
In this tutorial, we will show you how to develop PostgreSQL functions that return a table. https://www.postgresqltutorial |