postgresql - Postgresql:带子句功能
问题描述
PostgreSQL 是否支持 with Clause 中的函数?oracle 具有以下功能
WITH
function add_fnc(p_id number) return number
is
begin
return p_id + 1;
end;
select add_fnc(id1) from test_tbl;
解决方案
PostgreSQL中没有 CTE 函数(正如 cofemann 指出的那样),但您正在寻找的似乎是临时函数。看看如何在 PostgreSQL 中创建临时函数?
推荐阅读
- javascript - Google脚本仅在某些日期添加带有日期的行
- amazon-web-services - 获取 amazon s3 文件夹大小 react-native
- python - 在 kivy 窗口中拖动文件并加载主类函数不会添加小部件
- microsoft-graph-api - 通过 Microsoft 图形 API 访问用户信息
- excel - 为工作表中的所有单元格应用一般条件格式
- docker - 在 wildlfy 数据源定义(文件)中使用环境变量
- javascript - JWPlayer 在视频中显示直播消息
- android - CollapsingToolbar 中的 EditText 隐藏在软键盘后面
- bash - 将字符串作为文件传递给bash终端中的java keytool?
- javascript - 如何使用Javascript获取单独数组中2个对象的交集和对称差