| | |
| | | ----------------------------------------------------------------------------------------------------- 递归查询 |
| | | ----------------------------------------------------------------------------------------------------- 1.查询连接数 |
| | | show max_connections; |
| | | select count(1) from pg_stat_activity; |
| | | ----------------------------------------------------------------------------------------------------- a.递归查询 |
| | | --------------------------------------------------------- 查询菜单 |
| | | select * from lf.sys_menu order by order_num; |
| | | |
| | |
| | | select a.* from lf.sys_dir a, rs b where a.pid=b.id |
| | | ) |
| | | select * FROM rs order by order_num; |
| | | ----------------------------------------------------------------------------------------------------- a.查询连接数 |
| | | show max_connections; |
| | | select count(1) from pg_stat_activity; |
| | | ----------------------------------------------------------------------------------------------------- b.查询表结构 |
| | | select * from pg_tables; |
| | | select * from pg_class order by relnamespace; |