Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
cf9fd800
Commit
cf9fd800
authored
Jul 11, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Example for create function using argument names
Gavin Sherry
parent
af4de814
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
doc/src/sgml/ref/create_function.sgml
doc/src/sgml/ref/create_function.sgml
+12
-1
No files found.
doc/src/sgml/ref/create_function.sgml
View file @
cf9fd800
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.5
7 2004/06/25 07:05:34 dennis
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.5
8 2004/07/11 23:23:43 momjian
Exp $
-->
<refentry id="SQL-CREATEFUNCTION">
...
...
@@ -398,6 +398,17 @@ CREATE FUNCTION add(integer, integer) RETURNS integer
LANGUAGE SQL
IMMUTABLE
RETURNS NULL ON NULL INPUT;
</programlisting>
</para>
<para>
Increment an integer, making use of an argument name, in PL/PgSQL:
<programlisting>
CREATE OR REPLACE FUNCTION increment(i integer) RETURNS integer AS '
BEGIN
RETURN i + 1;
END;' LANGUAGE plpgsql;
</programlisting>
</para>
</refsect1>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment