AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

虚谷数据库系统函数

skill-kourou25-xugudb-dev-skills-xugudb-functions · by kourou25

|

— No reviews yet
0 installs
29 views
0.0% view→install

Install

$ agentstack add skill-kourou25-xugudb-dev-skills-xugudb-functions

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-kourou25-xugudb-dev-skills-xugudb-functions)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of 虚谷数据库系统函数? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

虚谷数据库系统函数

虚谷数据库提供 472 个内置系统函数,覆盖 21 个功能类别,高度兼容 Oracle/MySQL/PostgreSQL 函数体系。

函数分类概览

| 类别 | 函数数 | 说明 | |------|--------|------| | 字符串函数 | 74 | 长度、截取、查找、替换、正则、拼音等 | | 数学函数 | 59 | 基本运算、三角函数、对数指数、取整、随机数 | | 日期时间函数 | 100 | 当前时间、构造、提取、运算、转换、截断 | | 聚合函数 | 24 | AVG/SUM/COUNT/MAX/MIN/MEDIAN/LISTAGG/GROUPCONCAT 等 | | 分析函数 | 8 | ROWNUMBER/RANK/DENSERANK/LAG/LEAD/FIRSTVALUE 等 | | JSON 函数 | 28 | 构造/查询/修改/验证/搜索/合并/Schema 验证 | | 比较函数 | 5 | COMPARE/INTERVAL/ISNULL/NUMNONNULLS/NUMNULLS | | 流程控制函数 | 3 | IF/IFNULL/NULLIF | | 加密函数 | 4 | MD5/SHA/SHA1/SHA2 | | 编码解码函数 | 13 | BASE64/HEX/ESCAPE 编解码 | | BIT 函数 | 13 | 按位与或非异或、位设置/测试/计数、移位 | | UUID 函数 | 5 | NEWID/SYSGUID/UUID/GENRANDOMUUID | | XML 函数 | 11 | XMLELEMENT/XMLFOREST/XMLTABLE/XMLQUERY 等 | | 大对象函数 | 3 | EMPTYBLOB/EMPTYCLOB/TOBLOB | | 数组函数 | 16 | ARRAYAPPEND/CAT/FILL/POSITION/REMOVE/REPLACE 等 | | 网络地址函数 | 2 | INETATON/INETNTOA | | 序列值函数 | 1 | CURRVAL | | 系统信息函数 | 36 | CURRENTUSER/DATABASE/VERSION/安全标签等 | | 系统管理函数 | 17 | 文件管理/日志/License/备份相关 | | 几何函数 | 21 | AREA/CENTER/POINT/POLYGON/LINE 等 | | 其他函数 | 29 | DECODE/HEX/RAISEAPPLICATIONERROR/会话变量等 |

常用函数速查

字符串处理

SELECT CONCAT('Hello', ' ', 'XuguDB');           -- 字符串拼接
SELECT SUBSTR('XuguDB', 1, 4);                    -- 截取子串 → 'Xugu'
SELECT REPLACE('Hello World', 'World', 'XuguDB'); -- 替换
SELECT TRIM('  text  ');                           -- 去除两端空格
SELECT REGEXP_REPLACE('abc123', '[0-9]+', '');     -- 正则替换
SELECT LENGTH('虚谷数据库');                        -- 字符长度

日期时间

SELECT SYSDATE;                                    -- 当前日期时间
SELECT EXTRACT(YEAR FROM SYSDATE);                 -- 提取年份
SELECT ADD_MONTHS(SYSDATE, 3);                     -- 加3个月
SELECT DATEDIFF(DATE '2024-12-31', DATE '2024-01-01'); -- 日期差
SELECT TO_CHAR(SYSDATE, 'YYYY-MM-DD HH24:MI:SS'); -- 日期格式化

聚合与分析

SELECT dept_id, AVG(salary), MEDIAN(salary) FROM emp GROUP BY dept_id;
SELECT name, salary, RANK() OVER (ORDER BY salary DESC) FROM emp;
SELECT name, salary, LAG(salary) OVER (ORDER BY hire_date) AS prev_salary FROM emp;

JSON

SELECT JSON_EXTRACT('{"name":"XuguDB","ver":12}', '$.name');  -- 提取值
SELECT JSON_SET('{"a":1}', '$.b', 2);                          -- 设置值
SELECT JSON_VALID('{"key":"value"}');                           -- 验证

与 Oracle/MySQL/PG 函数兼容性

| 场景 | XuguDB | Oracle | MySQL | PostgreSQL | |------|--------|--------|-------|------------| | 字符串拼接 | CONCAT / \|\| | \|\| | CONCAT | \|\| | | 正则 | REGEXPLIKE/REPLACE/SUBSTR | 同名 | REGEXP 运算符 | ~ 运算符 | | NVL | NVL / IFNULL | NVL | IFNULL | COALESCE | | 分组拼接 | LISTAGG / GROUPCONCAT / WMCONCAT | LISTAGG | GROUPCONCAT | STRINGAGG | | 日期加月 | ADDMONTHS | ADDMONTHS | DATEADD | + INTERVAL | | 日期格式化 | TOCHAR | TOCHAR | DATEFORMAT | TOCHAR | | DECODE | DECODE | DECODE | 不支持(用CASE) | 不支持(用CASE) | | JSON 操作 | JSONEXTRACT / -> / ->> | JSONVALUE | JSONEXTRACT / -> / ->> | -> / ->> | | UUID | SYSGUID / NEWID / UUID | SYSGUID | UUID() | genrandomuuid() | | 数组 | ARRAYAPPEND/CAT/POSITION 等 | VARRAY(受限) | 不支持 | 同名函数 | | 分析函数 | ROW_NUMBER/RANK/LAG/LEAD | 同名 | 同名(8.0+) | 同名 |

参考文档

  • [字符串函数](skills/xugudb-functions/references/string-functions.md) — 74 个函数:长度、截取、查找、替换、正则、拼音
  • [数学函数](skills/xugudb-functions/references/math-functions.md) — 59 个函数:运算、三角、对数、取整、随机
  • [日期时间函数](skills/xugudb-functions/references/datetime-functions.md) — 100 个函数:当前时间、提取、运算、转换
  • [聚合与分析函数](skills/xugudb-functions/references/aggregate-functions.md) — 24 聚合 + 8 分析函数
  • [JSON 函数](skills/xugudb-functions/references/json-functions.md) — 28 个函数:构造、查询、修改、验证
  • [其他函数](skills/xugudb-functions/references/other-functions.md) — 比较、流程控制、加密、编码、BIT、UUID、XML、数组、系统信息等

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.