标签目录:PostgrepSql

以下是与标签 “PostgrepSql” 相关联的文章

GreenPlum和PostgrepSql中SQL语句查询表结构

我们都知道命令查询表结构的方法如下: 先登录psql,执行:psql -h 123.123.123.123 database_name -U user_name 登录psql之后,再执行命令:\d owner_name.tablename 下面是通过SQL语句直接查询表结构或者视图的方法: select a.attname, pg_catalog.format_type(a.atttypid, a.atttypmod) as type from pg_catalog.pg_a……