小编Bog*_*lea的帖子

获取任何 Postgres 元命令的等效 SQL 查询

我希望标题是自我描述的。我希望能够以某种方式将任何 Postgres 元命令转换为其相应的/基础 SQL 查询,至少可以了解有关 Postgres 及其在表中存储元信息的方式的更多信息。

如果可能的话,有什么想法吗?

例如:

当连接到数据库的例子, \dtSELECT table_schema,table_name FROM information_schema.tables ORDER BY table_schema,table_name;返回相同的结果。

如果可能的话,我想找到一种SELECT table_schema,table_name FROM information_schema.tables ORDER BY table_schema,table_name;在输入\dt到函数/宏/任何东西时获取值的方法。

postgresql

13
推荐指数
1
解决办法
5007
查看次数

标签 统计

postgresql ×1