oracle、mysql、sqlserver、postgresql查询所有函数名称
时间: 2023-08-04 20:06:39 浏览: 111
Sqlserver、Oracle、MySql、PostgreSql、SqlLite数据库差异
以下是各个数据库查询所有函数名称的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';
```
阅读全文