CREATE PROCEDURE author_and_title (book_code integer)
LANGUAGE SQL
AS $$
SELECT author, title FROM books WHERE code = book_code;
$$;
CALL author_and_title(1);
A procedure is a database object similar to a function. The difference is that a procedure does not return a value, so there is no return type declaration.