sql - Postgres 函数存在于特定模式中
问题描述
我有具有多个模式的 postgres DB,有没有一种方法(查询)我可以运行以确定函数是否存在于特定模式中,或者换句话说打印给定函数存在的模式名称列表。
解决方案
您可以调整以下查询:
select routine_name, routine_schema
from information_schema.routines
where routine_name='myfunction'
and routine_type='FUNCTION';
推荐阅读
- postman - 使用文本分析 API 和 Postman 进行情绪分析
- html - 在 HTML 输入模式属性中转义“和”
- spring - 将 Spring Data JPA 与 Spring JPA 一起使用时的问题
- kotlin - kotlin 中 == 和 === 有什么区别
- perl - 在 Mojo 中查找以特定 url 开头的链接
- html - 全屏居中 html5 视频直播
- azure-devops - 如何限制对 VSTS 中特定工作项功能的访问
- javascript - 动作不触发reducer
- excel - VBA添加具有可变范围的小计
- menuitem - 错误:找不到函数“createRenderFunction”