PostgreSQL �� PL/pgSQL ���g���� ORACLE �� PL/SQL �̂悤�� ������邱�Ƃ��ł��܂��� �葱������� SQL �ł��ȒP�Ɋ�����邱�Ƃ��ł��܂��B
���̂悤�ɒ�`���܂��B
CREATE FUNCTION test_func (
i1 integer,
i2 integer
)
RETURNS integer
AS
$$
SELECT $1 + $2
$$
LANGUAGE sql IMMUTABLE STRICT;
�Ăяo���Ƃ��͓����ł��B
db=# SELECT test_func(4, 3);
7