[英]What is pg_class in Postgres and how to see it using pgAdmin 4?
I'm new to Postgresql and I just saw my friends query on a cakePhp controller that call 'pq_class'. 我是Postgresql的新手,我刚刚看到我的朋友在一个名为“ pq_class”的cakePhp控制器上查询。 I tried to look up to my PostgreSQL database and find out what's inside using pgAgmin4.
我试图查找我的PostgreSQL数据库,并使用pgAgmin4找出其中的内容。
Unfortunately, I can't see any table name with 'pg_class'. 不幸的是,我看不到任何带有'pg_class'的表名。 I tried to google and find these pages :
我试图谷歌,找到这些页面:
https://www.postgresql.org/docs/current/catalog-pg-class.html https://www.postgresql.org/docs/current/catalog-pg-class.html
postgreSQL - pg_class question postgreSQL-pg_class问题
But I am still confused about pg_class
. 但是我仍然对
pg_class
感到困惑。 Is there any good or real explanation about pg_class and how to see it using pgAdmin4 without using any query (just right click -> view data) 是否有关于pg_class以及如何在不使用任何查询的情况下使用pgAdmin4进行查看的任何好的或真实的解释(只需右键单击->查看数据)
pg_class
is an internal system table that stores information about tables (and similar objects") available in the database. Every database product has such a collection of system tables (and views) that it maintains. pg_class
是一个内部系统表,用于存储有关数据库中可用表(和类似对象)的信息。每个数据库产品都维护着这样的系统表 (和视图) 集合 。
You can (and in most cases should) use the views from the information_schema
if you want to see information about tables, columns, views and other database objects. 如果要查看有关表,列,视图和其他数据库对象的
information_schema
则可以(并且在大多数情况下应使用)来自information_schema
视图。
You can get details from information_schema on pgadmin like this. 您可以像这样从pgadmin上的information_schema中获取详细信息。
` SELECT * FROM information_schema.columns; `SELECT * FROM information_schema.columns;
select * from information_schema.tables` 从information_schema.tables中选择*
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.