Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

plpgsql create function

postgres=# Create or replace function fun1(n int) returns int 

as

$$

Begin

Insert into test values (n,'2019-11-26');

Return 1;

End;

$$

Language 'plpgsql';

CREATE FUNCTION

postgres=# 
Source by www.enterprisedb.com #
 
PREVIOUS NEXT
Tagged: #plpgsql #create #function
ADD COMMENT
Topic
Name
8+9 =