CREATE OR REPLACE FUNCTION miesquema.incremento(valor integer)
RETURNS int4
LANGUAGE plpgsql
AS $$
BEGIN
RETURN valor + 1;
END;
$$
;
--para invocarlo
--CALL incremento(3);
Ejemplo de función en PostgreSQL
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.