📄 create_aggregate.sql
字号:
---- CREATE_AGGREGATE---- all functions CREATEdCREATE AGGREGATE newavg ( sfunc = int4_accum, basetype = int4, stype = _numeric, finalfunc = numeric_avg, initcond1 = '{0,0,0}');-- test commentsCOMMENT ON AGGREGATE newavg_wrong (int4) IS 'an agg comment';COMMENT ON AGGREGATE newavg (int4) IS 'an agg comment';COMMENT ON AGGREGATE newavg (int4) IS NULL;-- without finalfunc; test obsolete spellings 'sfunc1' etcCREATE AGGREGATE newsum ( sfunc1 = int4pl, basetype = int4, stype1 = int4, initcond1 = '0');-- value-independent transition functionCREATE AGGREGATE newcnt ( sfunc = int4inc, basetype = 'any', stype = int4, initcond = '0');COMMENT ON AGGREGATE nosuchagg (*) IS 'should fail';COMMENT ON AGGREGATE newcnt (*) IS 'an any agg comment';COMMENT ON AGGREGATE newcnt (*) IS NULL;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -