Search
 
SCRIPT & CODE EXAMPLE
 

SQL

plpgsql create function

CREATE FUNCTION function_name(argument1 type,argument2 type)
 RETURNS type AS
BEGIN
  staments;
END;
LANGUAGE 'language_name';
Comment

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=# 
Comment

PREVIOUS NEXT
Code Example
Sql :: how to select unique element in sql 
Sql :: mysql update with join 
Sql :: oracle apex warn on unsaved changes 
Sql :: postgres create column with default value 
Sql :: ValueError: A string literal cannot contain NUL (0x00) characters. 
Sql :: mysql update from select on same table 
Sql :: myswql show full processlist 
Sql :: postgresql combine values in one field 
Sql :: CONVERT time string into 12 hours in sql 
Sql :: use group_concat in concat 
Sql :: Select without null values sql 
Sql :: nullif postgresql 
Sql :: mysql select default if null 
Sql :: android sqlite add column if not exists 
Sql :: mysql decimal allow negative values? 
Sql :: sql update insert and delete 
Sql :: average sql 
Sql :: mysql timestamp format 
Sql :: change user mysql password 
Sql :: how to combine 2 tables in mysql 
Sql :: sql round 2 decimal 
Sql :: select distinct postgres 
Sql :: postgresql grant owner to user 
Sql :: power bi dax is in the last 3 months 
Sql :: mysql root permission denied lost 
Sql :: mysql if 
Sql :: mysql select date from datetime 
Sql :: pl sql 
Sql :: sql server convert to guid 
Sql :: mysql regex exact match 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =