RETURNS void
LANGUAGE 'plpgsql'
COST 100
VOLATILE
AS $BODY$
BEGIN
execute 'select * from mytable where data1 = $1 ;';
END;
$BODY$;
https://www.postgresql.org/docs/9.1/sql-prepare.html https://www.postgresql.org/docs/9.1/sql-execute.html
Обсуждают сегодня