Answers for "function postgres"

SQL
5

create function in postgresql

create [or replace] function function_name(param_list)
   returns return_type 
   language plpgsql
as $$
declare 
-- variable declaration
begin
 -- logic
end;
$$
Posted by: Guest on October-16-2020
0

postgresql functions

CASE
     WHEN condition_1  THEN result_1
     WHEN condition_2  THEN result_2
     ...
     ELSE  result_n
END
Posted by: Guest on November-17-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language