oracle、mysql、sqlserver、postgresql查询所有函数名称
时间: 2023-08-04 09:06:39 浏览: 113
以下是各个数据库查询所有函数名称的SQL语句:
Oracle:
```
SELECT object_name
FROM user_objects
WHERE object_type = 'FUNCTION';
```
MySQL:
```
SELECT name
FROM mysql.proc
WHERE type = 'FUNCTION';
```
SQL Server:
```
SELECT name
FROM sys.objects
WHERE type_desc = 'SQL_SCALAR_FUNCTION'
OR type_desc = 'SQL_TABLE_VALUED_FUNCTION';
```
PostgreSQL:
```
SELECT routine_name
FROM information_schema.routines
WHERE routine_type = 'FUNCTION'
AND specific_schema = 'public';
```
阅读全文