HomeMogDBMogDB StackUqbar
v2.1

Documentation:v2.1

Supported Versions:

User-defined Functions

In the MogDB, in order to achieve specific functions, users can define functions, just like most other languages, in addition to system library functions, programmers will also write many custom functions.

MogDB user-defined functions are a combination of a set of SQL and procedure statements (declaration, allocation, loop, control flow, etc.) that are stored on the database server and can be called using the SQL interface. In terms of presentation, user-defined functions and stored procedures are very similar, except that stored procedures have no return values but the functions have.

For details about how to create and call a user-defined function, see CREATE FUNCTION.

The application methods for stored procedures mentioned in Stored Procedure are similar to those for user-defined functions in this section. For details, please refer to PL/pgSQL-SQL Procedural Language section, unless otherwise specified, the contents apply to stored procedures and user-defined functions.

Copyright © 2011-2024 www.enmotech.com All rights reserved.