提交 3236e9d2 authored 作者: Thomas Mueller's avatar Thomas Mueller

User defined functions can be created with source code.

上级 a5ad7221
......@@ -13,3 +13,20 @@ VOLATILE value can change
CALLED ON NULL INPUT
RETURNS NULL ON NULL INPUT or STRICT
CREATE FUNCTION add(integer, integer) RETURNS integer
AS 'select $1 + $2;'
LANGUAGE SQL
IMMUTABLE
RETURNS NULL ON NULL INPUT;
CREATE OR REPLACE FUNCTION increment(i integer) RETURNS integer AS $$
BEGIN
RETURN i + 1;
END;
$$ LANGUAGE plpgsql;
create alias newFunctionAliasName [ DETERMINISTIC ]
as
FOR classAndMethodName
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论